diff options
| author | Nicholas Johnson <> | 2026-09-20 00:00:00 +0000 |
|---|---|---|
| committer | Nicholas Johnson <> | 2026-09-20 00:00:00 +0000 |
| commit | 8796113e6933d54710e8534264710f6797e0fda8325783c9052d4b7024a80301 (patch) | |
| tree | 507bc010cd0632be4b0604dce7cda95fdc7796922eae46269856f38b40eb4b47 /layouts/_default/term.html | |
| parent | b2e2ebef4f5f304884cbf86e73a000d6ee2d0a32a421e5aa55662a2255f7e364 (diff) | |
| download | hugo-theme-journal-8796113e6933d54710e8534264710f6797e0fda8325783c9052d4b7024a80301.tar.gz hugo-theme-journal-8796113e6933d54710e8534264710f6797e0fda8325783c9052d4b7024a80301.zip | |
Link the tag list from the homepageHEAD2026.09.19main
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 <noreply@anthropic.com>
Diffstat (limited to 'layouts/_default/term.html')
0 files changed, 0 insertions, 0 deletions
