About
What this site is, and the front-matter contract for adding a new demo.
I got tired of scattering Eleventy examples across a dozen half-finished repos, so I put them all here instead — one page per pattern. And every demo is the real thing, not a screenshot of it. The Dark Mode demo is the site’s actual theme toggle. The Search demo is the actual header search. If you click something, it works.
Adding a new demo
Drop a Markdown file into src/demos/ with front matter like this:
---
title: "Your Demo Title"
description: "One sentence describing what this demo actually does."
tags: ["some-tag", "another-tag"]
date: 2026-08-01
difficulty: "Intermediate" # Beginner | Intermediate | Advanced
thumbnail: /assets/images/demos/your-demo-title.svg
order: 90 # optional; controls listing order
demoBlock: "demo-live/your-demo-title.njk" # optional; a live, working example
--- That’s it. The new demo:
- Gets the shared layout and hero automatically (
src/demos/demos.jsonsets the defaultlayoutand permalink). - Appears on
/demos/immediately (the listing loops thedemoscollection). - Gets a page for each of its tags under
/demos/tags/automatically. - Is included in
/search-index.json, and therefore in the header search. - Slots into Previous/Next navigation based on its
order(or title, iforderis omitted). - Shows up in other demos’ “Related Demos” sections if it shares tags with them.
No other file needs to change.