This file lives at src/content/work/mozilla/sample.md. Itβs a sample post inside the Mozilla subsection of the Work section.
For a code walkthrough of the patterns mentioned in this post, see this YouTube video β placeholder; swap in the actual link.
Three levels of editable content sit above this file:
- Section β title and description for
Workitself live insrc/content/work/_config.md. That controls the heading and subtitle you see on/and/work. - Subsection β
Mozilla(and its subtitle) is configured insrc/content/work/mozilla/_config.md. That controls the card on/workand the heading on/work/mozilla. - Entry (this file) β the frontmatter above controls the card on
/work/mozillaand the page heading at/work/mozilla/sample.
Frontmatter fields:
titleβ page heading and card title in the listing.descriptionβ the subtitle shown under the card title.dateβ sorts entries on the subsection page; newest first by default.tagsβ optional chips that link to/tags/<tag>.draft: trueβ hides the entry from listings if youβre not ready to publish.
Below the frontmatter is just Markdown. Headings, lists, links, code, images all work normally:
function hello(name: string) {
return `Hi, ${name}.`;
}
To add another entry, copy this file, rename it (anything except a leading _), and edit the frontmatter. To delete it, remove the file.