Skip to content

[//blog] 1 MIN READ #markdown #guide

Writing posts in Markdown

Every post is a folder: content/blog/YYYY/MM/<slug>/index.md, next to its images. The folder name is the URL slug. Drafts go in content/blog/drafts/<slug>/.

Every post is a folder: content/blog/YYYY/MM/<slug>/index.md, next to its images. The folder name is the URL slug. Drafts go in content/blog/drafts/<slug>/.

Front matter

title: Required
date: 2026-09-27      # required, YYYY-MM-DD, must match the YYYY/MM folder
updated: 2026-09-30   # optional
image: cover.png      # optional share image, a file in the post folder
summary: Optional     # defaults to the first paragraph
tags: [one, two]

Images

Put images next to index.md and link them relatively: ![Alt text](cover.png).

GitHub-flavoured extras

Feature Supported
Tables yes
Strikethrough yes
Task lists yes
  • Write the post
  • Run bin/console deploy

Raw HTML such as <script>alert(1)</script> is escaped, and external links like Datastar get rel="noopener noreferrer".

Components

A line of its own like ::name{key="value"} places a component: a small template from templates/_components/, such as related posts or (soon) a video. Arguments are plain text, numbers or true/false:

::related-posts{limit=2}

Inside code, like above, it's just text. An unknown component stops the build with the file name.

Videos are built-in components: ::youtube{id="…"} and ::vimeo{id="…"}. Nothing is loaded from YouTube or Vimeo until you press play; the poster comes from this site:

Big Buck Bunny (Blender Foundation, CC BY 3.0) · Plays from YouTube: nothing is loaded from it until you press play.

< back to blog_