2 min read

Sample entry β€” read me first

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:

  1. Section β€” title and description for Work itself live in src/content/work/_config.md. That controls the heading and subtitle you see on / and /work.
  2. Subsection β€” Mozilla (and its subtitle) is configured in src/content/work/mozilla/_config.md. That controls the card on /work and the heading on /work/mozilla.
  3. Entry (this file) β€” the frontmatter above controls the card on /work/mozilla and 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.