Show HN: Minimal Next.js 15 Markdown Boilerplate (github.com)
Just write Markdown. Add React components whenever you want. I'm lazy, so I made this extremely simple.
- Render Markdown files as dynamic pages
- Add React components anywhere in your Markdown
- The folder structure becomes the URL path
- Global styles using Tailwind CSS and DaisyUI
6 comments
[ 2.6 ms ] story [ 24.0 ms ] threadFor your use case I'd recommend a command-line tool that converts Markdown files from a given folder and outputs it to a corner of your existing site. There are implementations in various languages, so you can choose according to preference.
Or you can even use a Markdown-to-HTML tool (I believe pandoc has this feature) to convert the pages yourself before posting. That's a bit more manual but wouldn't require changing your current structure.
Anyway, if you end up using boilerplate, let me know what you think!
There are other tools that /just/ do Markdown builds like parceljs.org But with your approach you can actually be used to do more than that.
1. Built-in MDX support means you can seamlessly mix Markdown and React components. (I previously had some trouble with the @mdx-js/react library and was in the market for more native solutions.)
2. Next.js makes it pretty easy to do modern web stuff, like client/server components and Tailwind/DaisyUI styling.
3. With Vercel spending so much getting YouTubers to create general Next.js tutorials, I found it very easy to get this set up.
If you're dealing with purely static Markdown content, I would recommend something simpler.