This page is the unmodified output of npm create zfb@latest my-site at commit 4dd7e62. Docs · GitHub
basic-blog

About this starter

This site is the basic-blog template that ships with zfb. Pages are server-rendered to static HTML at build time; the only JavaScript that reaches the browser is the theme toggle in the header, because it is the only component marked "use client".

Where things live

pages/
Routes. One file per URL; [slug].tsx expands via its paths() export.
layouts/
Shared HTML shell — <head>, header, footer, the theme bootstrap.
components/
Plain components, plus the one "use client" island.
content/blog/
The blog collection. Markdown and MDX files with frontmatter.
styles/
Tailwind entry, theme tokens, and the .prose markdown styles.
lib/
Types shared between routes.
mdx-components.tsx
Project-wide component map applied to every rendered entry.
zfb.config.ts
Framework, collections + schema, and the markdown features.

Commands