All writing

5 Dec 2026 · 2 min read

Hello, world — and a guide to writing here

The first post on the new site, and a living reference for every kind of content a post can hold.
meta
writing

This is the first post on the redesigned site. It doubles as a reference: every block below is plain Markdown in the repository, rendered at build time. To publish something new, add a .md file to content/blog/ and push.

Writing a post#

A post is either a single file, content/blog/my-post.md, or a folder, content/blog/my-post/index.md, with its images, audio and video sitting right next to it. The folder name (or file name) becomes the URL.

Every post starts with a little front matter:

---
title: My new post
date: 2026-12-24
description: One line shown in the list and in link previews.
tags: [books, mountains]
cover: cover.jpg   # optional, relative to the post folder
draft: true        # optional, hides the post
---

Text#

Paragraphs, bold, italic, strikethrough, inline code, ⌘ + K, highlights, links and footnotes1 all work.

The mountains are calling and I must go.

— John Muir

Images#

Use the normal image syntax. A quoted title becomes the caption.

Layered mountains drawn in black and ivory
Images live next to the post and are copied in at build time.

Video#

Point the image syntax at a video file (.mp4, .webm, .mov) and it becomes a player.

A short clip stored in the repository

Audio#

The same works for audio (.mp3, .wav, .ogg, .m4a, .flac).

A soft A-major chord

Embeds#

Paste a link on its own line from YouTube, Vimeo, Spotify, SoundCloud, CodePen, CodeSandbox, Loom or Google Maps and it turns into an embed.

Anything else can be embedded with raw HTML, such as an <iframe>.

Code#

Fenced code blocks are syntax highlighted and get a copy button.

type Post = { slug: string; title: string; date: string }

export function latest(posts: Post[], n = 3): Post[] {
  return [...posts].sort((a, b) => b.date.localeCompare(a.date)).slice(0, n)
}
def fib(n: int) -> int:
    a, b = 0, 1
    for _ in range(n):
        a, b = b, a + b
    return a

Lists and tables#

  1. Read something good
  2. Climb something tall
  3. Write something true
  • Redesign the site
  • Write the second post
Content Syntax
Image ![alt](photo.jpg "caption")
Video ![caption](clip.mp4)
Audio ![caption](song.mp3)
Embed a YouTube/Spotify/… URL on its own line
And collapsible sections, via plain HTML

Hidden until you open it.


Thanks for reading.

Footnotes#

  1. Like this one. ↩