How to write a post
Add a Markdown file, fill in its frontmatter, preview it locally and open a pull request.
A post is a Markdown file in src/content/posts/ of the site’s repository. Its file name is its address: moose-rules.md is published at /posts/moose-rules/.
The frontmatter
---title: Writing rules with the Moose Rule Enginedescription: One or two sentences saying what the reader gets from this post.date: 2026-11-20kind: guide # guide, experiment, project or newstags: [moose, rules] # lowercase, words joined by hyphensauthors: [gabriel-darbord] # keys from src/content/authors.yaml---Every list on the site shows the title and the description, so write the description for someone deciding whether to open the post.
The build checks the frontmatter, and fails on a missing description, an unknown author or kind, or a tag like Moose Rules instead of moose-rules.
Optional fields:
updated: 2026-12-01when a guide changes in a way readers should know about.draft: truekeeps a post off the published site; it still shows on your local server.coverandcoverAltgive the post an image, from a file next to it.seriesandpartput the post in a series, which links its parts in order. A series is declared once insrc/content/series.yaml, with a title and a description.
A new author adds themselves to src/content/authors.yaml:
jane-doe: name: Jane Doe github: jane-doeCode and diagrams
Code blocks are highlighted from their language, Smalltalk included:
MRERule subclass: #MyRule instanceVariableNames: '' classVariableNames: '' package: 'My-Rules'A mermaid code block is drawn as a diagram:
flowchart LR write[Write the post] --> preview[Preview it locally] --> pr[Open a pull request] --> merge[Merge: it is published]
A post that needs components or interactive parts can be an .mdx file instead.
Preview and publish
npm installnpm run devThe site is then at http://localhost:4321, and reloads as you edit. Open a pull request: its checks build the site, and merging it publishes the post.