Skip to content

Local development ​

Setup ​

Install Git, use Node.js 24 as specified in .node-version, and use pnpm 12.16.1 from package.json.

bash
corepack enable pnpm
git clone https://github.com/your-username/your-blog.git
cd your-blog
pnpm install
pnpm dev

Open http://localhost:3000.

Commands ​

CommandPurpose
pnpm devStart the Next.js development server
pnpm lintCheck code
pnpm lint:fixCheck code and apply formatting fixes
pnpm buildRun lint:fix, then build for production
pnpm startServe the production build
bash
pnpm build
pnpm start

The production preview also runs at http://localhost:3000. Self-hosting requires a Next.js runtime and process management.

Files ​

PathContents
config.ymlSite settings
posts/*.mdBlog posts
posts/_pages/About.mdAbout page
posts/_pages/Friends.mdFriends page
public/imagesImages referenced as /images/...
src/appRoutes and metadata
src/componentsUI components and Markdown rendering
src/servicesConfig loading, content loading, and generated files
src/stylesTheme and styles

pnpm build generates public/feed.xml, public/llms.txt, and public/llms-full.txt. Review changes to these files before committing. RSS generation depends on socialMedia.rss, as described in site configuration.

Validate changes ​

Run pnpm lint:fix before committing. Also run pnpm build after changing configuration, routes, content processing, or UI. The project currently has no test script.

When changing config fields, update both config.yml and src/schemas/config.ts. See the contribution guide for development conventions.

Documentation licensed under CC BY 4.0