Documentation

next-md-blog

Markdown blog on Next.js

A single-locale demo: file-based posts, great typography, and sensible defaults you can ship or fork.

Markdown + frontmatter

Author in .md with YAML metadata; content stays in git.

App Router routes

Dynamic /blog/[slug] and listing pages with static generation.

SEO-ready

Metadata helpers, JSON-LD, sitemap, and Open Graph images.

Type-safe API

Typed post loaders and config from @next-md-blog/core.

Typography

Prose styling via Tailwind Typography for readable long-form.

Light & dark

Theme toggle with system preference via next-themes.

Quick start

Wire the library into your own app in a few steps

  1. Install: npm install @next-md-blog/core
  2. Scaffold: npx next-md-blog-init
  3. Add posts under posts/
  4. Routes resolve at /blog/[slug]