From 8796113e6933d54710e8534264710f6797e0fda8325783c9052d4b7024a80301 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson <> Date: Sun, 20 Sep 2026 00:00:00 +0000 Subject: Link the tag list from the homepage Tags reach a dead end in gemtext. The entry metadata names them, but a gemtext link must occupy a whole line, so the names are plain text and the tag pages the theme generates cannot be reached from the homepage at all. The web homepage links each entry's own tags inline, yet neither format links the tag list itself, so a site had to add it to the navigation links by hand. Add a tags section to both homepage templates, holding a single link to the taxonomy list page, and place it between the navigation links and the feed. One link rather than one per term keeps the homepage short however many tags a site accumulates, and keeps the two output formats in step. Render it only when the taxonomy page exists and has terms, so that a site whose entries carry no tags, or which disables the taxonomy kinds outright, gains no heading and no dead link. The link is labelled from a new "tagList" string rather than reusing "tags", which would have read as a link named after the heading above it. As elsewhere in the theme, the taxonomy is found by lowercasing the "tags" string, so a translated site finds its own taxonomy: an example site built in Spanish links "Lista de etiquetas" under "Etiquetas". Co-Authored-By: Claude Opus 5 --- layouts/home.gmi | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'layouts/home.gmi') diff --git a/layouts/home.gmi b/layouts/home.gmi index 619a5f8..a63c9f4 100644 --- a/layouts/home.gmi +++ b/layouts/home.gmi @@ -13,6 +13,16 @@ {{ end -}} +{{ $tagList := .Site.GetPage (lower (i18n "tags")) -}} +{{ if and $tagList $tagList.Pages }} + + +## {{ i18n "tags" }} + +=> {{ $tagList.RelPermalink | strings.TrimSuffix "index.gmi" }} {{ emojify ":link:" }} {{ i18n "tagList" -}} + +{{ end -}} + {{ with .OutputFormats.Get "Gemini_Atom" }} -- cgit v1.2.3