Skip to content

bandrewfisher/next-js-markdown-blog-template

Repository files navigation

Next JS Markdown Blog Template

Use this template to create a blog using Next JS and Markdown.

Features

FAQ

How do I add a new blog post?

Create a new markdown (.md) file in the /posts directory. The file should have the following frontmatter:

---
title: Title of your blog post
date: YYYY-MM-DD
description: Description of your blog post
---

Code syntax highlighting is not working

Your language may not be included in the default Prism CSS file. You can add it by selecting all the languages you need to support on the Prism download page and downloading the CSS file.

Then, replace the contents of app/prism.css with the downloaded CSS file.

How do I customize the styling of the rendered blog posts?

See the documentation for @tailwindcss/typography for more information on how to customize the styling of the rendered markdown elements.

Can I use this template for commercial projects?

Yes, you can use this template for commercial projects. Please see the license for more information.

Acknowledgements

  • Next.js + Contentlayer Blog Starter: Thanks to the maintainers of this project for the inspiration. I referenced this project to figure out how to set up Contentlayer with Next.js.

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors