Blog
blog
nextjs
Welocome!
next your home banner
What is it?
π Blog
- Focus on Content
- Focus on UI/UX
- Focus on Performance
- Focus on Intuitive Layout
- Focus on Maintanance
- Focus on Customizability
π‘Visit Next Your Home Guide built with this template
π Tech stack
- Language π
typescript
- Framework βοΈ
NextJs
- Styling π
styled-components
- Markup π
mdx- π More than
markdown, it's rich - π Use
javascript expressions - π Use
JSX - π Explore more features on official MDX site
- π More than
mdx-bundler- π¦ Import pure
react componentin.mdxpost files - π Visit mdx-bundler for more config options
- π¦ Import pure
Why should I use it?
π Easy to start
- π You know
react - π Zero env configuration
- π Easy deploying via
vercel(Power of vercel + NextJs π) - π¦ Easy posting with built in CLIπ tool
π₯ Performance
- π Light house score
100 - π SEO support with
next-seo(More info about this package π) - π Bundle size optimized
Preacton production build (3kb) (What is Preact? π)- etc...
π² Intuitive post grouping
- π Category based grouping
- And you can describe the category
- π Category pagination
- Configurable with
blog.config.ts
- Configurable with
- π Post series
- Group your post by subtitle
π Reading focused UI/UX
- π Intuitive UI Elements
- π Easy navigation with
post controller - π Less vertical scrolling for searching post
- π Device width based, sized text content
π¨ Show your personality with colors
- π You can set color for each category and post
- π Your personal color will be adapted
- π Different, but consistent design
π» Features
- π
Light/Darkmode full support - π Intergrate Profile with full feature of
mdx - π Table of content on
desktop/mobile(optional on mobile) - π Image optimization with
next/image(More info about next/image π) - π Automatic image size support for
static/external - π Automatic pagination
- π Recover scroll position when navigating to previous page
- π Analyze visitors with
Google Analytics! Run it on thepartytownπthread and get the performance (partytown π) - π Support
sitemap,rssgeneration on build - π Math
katexsupport (optional) - π Automatic post refreshing in
devmode - π Specific
errorinformations about blog posts - π Decent
codeblock with code copybutton - etc...
How can I start?
-
Click
Use this templatebutton in this page and make ownrepowith1commit- Get this
repoto yourlocaldevelopment env
- Get this
-
Install packages
pnpm ibash-
this project use
pnpmfor package managing -
if
pnpmis not installed, visit pnpm install guidenpm install -g pnpmbash
-
-
Update π
blog.config.ts, πpublic/robots.txtblog.config.ts:authorInfo- name
- currentState
- currentGoal
- contacts
blogInfo- url: deploy url
- siteName
- subtitle
- language
- at
public/robots.txt:- update
Sitemapto your deploy url
- update
-
Dev test
pnpm devbashport
3000will be used by default -
First post
pnpm postbash -
Build test
pnpm buildbashbuild result in
.nextfolder -
Deploy with
vercel- make account
- choose blog repo
- follow vercel deploy step or click
deploybutton below
How can I customize?
- Check config options in
blog.config.ts - Easy to customize
- π You know
react - π You know
styled-components - π Just modify the style that you want to
- π You know
- Whole project includes
README.mdabout structures and description
Questions you might have!
π€ Why not use gatsby?
gatsby?-
Stricter than
NextJs -
Use
graphqlfor content api- just use
typescript - for the people don't know about
graphql
- just use
-
Rely on
gatsbycommunity to implement some feature
π€ How much fast you mean?
-
Run pagespeed test
desktopresult:100/100/100/100mobileresult:100/97/100/100
-
Run Webpage Test: pretty good
-
Check build
bundle sizeresult belowPage Size First Load JS β β / 1.46 kB 91.1 kB β /_app 0 B 70.3 kB β β /[category] 748 B 90.4 kB β β /[category]/[pageNumber] 832 B 90.5 kB β β /[category]/[pageNumber]/[postTitle] 1.64 kB 96.8 kB β β /404 269 B 70.6 kB β β /500 269 B 70.6 kB β β /category 3.21 kB 78.1 kB β β /profile 2.68 kB 89 kB + First Load JS shared by all 70.3 kB β chunks/main-be00b42900d433cc.js 36.8 kB β chunks/pages/_app-764e610a6d9ea0f7.js 32.7 kB β chunks/webpack-3373b0f21806983f.js 827 B β css/a36597fbcc4c45ff.css 813 Bbash
LICENSE
const LICENSE = "MIT π" const KOR = "κ°μ¬ν©λλ€ π" const ENG = "Thanks π"ts
danpacho
β’
2022λ 08μ 01μΌ
β’
Thanks For Reading !
What is MDX component?
Blogμ λ§μ§λ§ κΈμ΄μμ!