Posts

Everything I've written, freshest first.

Gallery shortcode

Leyline ships a gallery shortcode that renders photos in a masonry column layout. Clicking any thumbnail opens a fullscreen lightbox with keyboard navigation. From a page bundle …

Welcome to Leyline

Leyline is a minimal Hugo theme aimed at writing. It does a few things well: Sticky header with a logo, menu, and quick controls. A light/dark switcher that respects your OS …

MTG inline tier rating shortcode

The tier shortcode adds compact, colour-coded ratings inside regular prose. Use a positional value such as S or the named form B-. Every supported rating: S A+ A A- B+ B B- …

MTG set symbol shortcode

The set shortcode renders Magic expansion symbols inline using a Keyrune set code. It works naturally inside prose: Final Fantasy, Tarkir: Dragonstorm, and Secrets of Strixhaven. …

MTG Arena currency shortcodes

Three inline shortcodes help track MTG Arena resources: gems, gold coins, and draft tokens. Each accepts a positive or negative integer; negative values render in red. Spent -1,500 …

MTG Arena season recap shortcode

The season shortcode creates a monthly season summary with ranks for both formats and a breakdown of gems and draft tokens: earned, bought, spent, and ending balance. Rows with …

MTG Arena set mastery shortcode

The mastery shortcode tracks progress through a set’s mastery levels. The pass parameter flags whether the Mastery Pass was purchased, and max defaults to 90 if omitted. MKM …

MTG deck preview shortcode

Deck previews are loaded from data/decks/*.yaml and enriched with Scryfall data at build time. This keeps long decklists readable in Markdown while still rendering a useful visual …

MTG draft summary shortcode

The draft shortcode turns a single Arena run into a scan-friendly block: set, colors, win rate, record, gem result, and optional external links. MKM Draft 1 Matches 4-3 Winrate 57% …

MTG tournament match shortcode

The match shortcode gives tournament reports a tidy round summary with player names, deck names, and a result. Round 1 2-1 MeBoros Burn AndrésUR Murktide {{< match …

MTG combo shortcode

Use the combo shortcode for a compact group of related cards. The cards sit like a fanned hand; hover one and the rest spread aside. {{< combo "Splinter Twin" …

MTG card name hover previews

The cardname shortcode keeps an article flowing while still giving readers a quick card reference on hover. The classic Brainstorm sees play in cube, legacy, and pauper alike. The …

MTG card shortcode

Use the card shortcode when a post needs to stop and show one card clearly. It accepts a Magic card name and renders a preview with the card image. Lightning Bolt Instant {{< …

MTG inline mana shortcode

The mana shortcode renders Magic mana costs inline with surrounding prose, so deck techs and draft notes can talk about costs without reaching for images. Hover the symbols below …

Building Leyline in the open

Most themes I’ve used arrived as finished artifacts. Polished, pre-decided. This time I wanted to do it differently: think out loud, pick at the trade-offs, and keep the …

The mobile menu morph

The first version of Leyline’s mobile menu had two icons stacked in the button: a hamburger and an X. CSS swapped them based on whether the menu was open. It worked, but it …

Hugo Modules: composable themes

Themes used to be monoliths. You picked one, you got everything it shipped, and any deviation meant forking. Hugo Modules change that: a theme is a Go module, and you can compose …

Notes on typography

A few short notes on the type choices in this theme. One family, three weights Leyline ships with Inter at weights 400, 500, and 700. That’s enough to support body text, UI …

color-mix() is here. Use it.

For years, “a lighter version of the accent colour” meant baking in a second hex value. Now there’s color-mix(). Leyline’s tag chips use this pattern: on …

Dark mode, quick take

The theme switcher in Leyline follows a simple rule: on the first visit, match the user’s OS preference. Once they tap the toggle, lock to their choice via localStorage. This …