Install and preview
Requirements
Prepare Node.js 22.12 or newer and pnpm 11:
node --version
pnpm --versionDownload or clone the theme repository. Run these commands in the root containing package.json:
pnpm install
pnpm devOpen the address printed in the terminal. Development watches content and style changes; restart after changing configuration or dependencies.
Initial setup
- Set
site.baseUrl, the site name and languages inblog.config.ts. - Edit the
authorname, biography, avatar and social links, and descriptive copy intext. - Adjust navigation and edit the pages and translations under
content/pages/. - Replace friend links in
friends.config.ts, or export an empty array[]. - Replace demo articles, categories, tags and images.
See the complete configuration reference for fields and Site and appearance for common settings.
Everyday configuration, writing and customization primarily use blog.config.ts, content/, public/, custom/ and archetypes/, with friend links in friends.config.ts. Keep article-specific components in their bundle and shared components in custom/components/. See MDX interactive components.
Write your first article
Create a standalone article:
pnpm new post hello --title "My first article"This creates content/posts/hello.mdx. For images and attachments, use the bundle template:
pnpm new post first-bundle --use bundle --title "An article with images"This creates content/posts/first-bundle/index.mdx. Add attachments to the same folder. Edit the title, description and body, set draft to false and choose the publication date.
--title sets the title, --use selects a template, and the slug determines the URL. See writing templates for more options.
Preview production output
pnpm build
pnpm previewbuild checks types and generates pages, attachments, share covers and search indexes. preview serves production files from dist/ to check search, publication states and deployment paths. Rebuild after changing content.
Common commands
| Command | Purpose |
|---|---|
pnpm dev | Start the live blog preview |
pnpm build | Build the blog |
pnpm preview | Preview the built blog |