Buckets:
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| _posts | 3 items | ||
| public | 16 items | ||
| src | 27 items | ||
| .gitignore | 437 Bytes xet | f8bee8be | |
| README.md | 3.3 kB xet | 4176d40d | |
| package.json | 589 Bytes xet | 3c2d2215 | |
| postcss.config.js | 83 Bytes xet | 45df95a6 | |
| tailwind.config.ts | 1.05 kB xet | 6caaa6b2 | |
| tsconfig.json | 654 Bytes xet | fd4adc90 |
A statically generated blog example using Next.js, Markdown, and TypeScript
This is the existing blog-starter plus TypeScript.
This example showcases Next.js's Static Generation feature using Markdown files as the data source.
The blog posts are stored in /_posts as Markdown files with front matter support. Adding a new Markdown file in there will create a new blog post.
To create the blog posts we use remark and remark-html to convert the Markdown files into an HTML string, and then send it down as a prop to the page. The metadata of every post is handled by gray-matter and also sent in props to the page.
Demo
https://next-blog-starter.vercel.app/
Deploy your own
Related examples
- AgilityCMS
- Builder.io
- ButterCMS
- Contentful
- Cosmic
- DatoCMS
- DotCMS
- Drupal
- Enterspeed
- Ghost
- GraphCMS
- Kontent.ai
- MakeSwift
- Payload
- Plasmic
- Prepr
- Prismic
- Sanity
- Sitecore XM Cloud
- Sitefinity
- Storyblok
- TakeShape
- Tina
- Umbraco
- Umbraco heartcore
- Webiny
- WordPress
- Blog Starter
How to use
Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example blog-starter blog-starter-app
yarn create next-app --example blog-starter blog-starter-app
pnpm create next-app --example blog-starter blog-starter-app
Your blog should be up and running on http://localhost:3000! If it doesn't work, post on GitHub discussions.
Deploy it to the cloud with Vercel (Documentation).
Notes
blog-starter uses Tailwind CSS (v3.0).
- Total size
- 32.9 GB
- Files
- 31,201
- Last updated
- Sep 26
- Pre-warmed CDN
- US EU US EU