<feed xmlns='http://www.w3.org/2005/Atom'>
<title>hugo-theme-journal, branch 2026.09.19</title>
<subtitle>Hugo theme for my journal.</subtitle>
<id>https://git.nicholasjohnson.ch/hugo-theme-journal/atom?h=2026.09.19</id>
<link rel='self' href='https://git.nicholasjohnson.ch/hugo-theme-journal/atom?h=2026.09.19'/>
<link rel='alternate' type='text/html' href='https://git.nicholasjohnson.ch/hugo-theme-journal/'/>
<updated>2026-09-20T00:00:00Z</updated>
<entry>
<title>Link the tag list from the homepage</title>
<updated>2026-09-20T00:00:00Z</updated>
<author>
<name>Nicholas Johnson</name>
<email></email>
</author>
<published>2026-09-20T00:00:00Z</published>
<link rel='alternate' type='text/html' href='https://git.nicholasjohnson.ch/hugo-theme-journal/commit/?id=8796113e6933d54710e8534264710f6797e0fda8325783c9052d4b7024a80301'/>
<id>urn:sha256:8796113e6933d54710e8534264710f6797e0fda8325783c9052d4b7024a80301</id>
<content type='text'>
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 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Link the homepage feed from the homepage</title>
<updated>2026-09-20T00:00:00Z</updated>
<author>
<name>Nicholas Johnson</name>
<email></email>
</author>
<published>2026-09-20T00:00:00Z</published>
<link rel='alternate' type='text/html' href='https://git.nicholasjohnson.ch/hugo-theme-journal/commit/?id=b2e2ebef4f5f304884cbf86e73a000d6ee2d0a32a421e5aa55662a2255f7e364'/>
<id>urn:sha256:b2e2ebef4f5f304884cbf86e73a000d6ee2d0a32a421e5aa55662a2255f7e364</id>
<content type='text'>
The homepage was the one listing page with a feed but no link to it, so
a reader could only find it through the autodiscovery element in the
document head, which the capsule has no equivalent of. Sites worked
around this by adding the feed to the navigation links by hand.

Add a feeds section to both homepage templates, modelled on the one the
taxonomy, term and section templates carry, and place it below the
navigation links and above the entry list. As on those pages, it is
rendered only when the home kind lists the Atom output format, so a
site that omits the format gains nothing to link.

The example site's homepage gains the section in both output formats
and is otherwise byte-identical, as are the pages of every other kind.

Co-Authored-By: Claude Opus 5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Add Atom feeds for sections</title>
<updated>2026-09-20T00:00:00Z</updated>
<author>
<name>Nicholas Johnson</name>
<email></email>
</author>
<published>2026-09-20T00:00:00Z</published>
<link rel='alternate' type='text/html' href='https://git.nicholasjohnson.ch/hugo-theme-journal/commit/?id=9f3a9875caaded223901896f5302731d825cc0e77b54b45c2eab670f6e226b40'/>
<id>urn:sha256:9f3a9875caaded223901896f5302731d825cc0e77b54b45c2eab670f6e226b40</id>
<content type='text'>
Sections were the one listing kind without a feed of their own, though
the section templates already linked one whenever the output format was
configured. Add the two feed templates, modelled on the taxonomy and
term ones, and turn the format on for sections in the example site.

Co-Authored-By: Claude Opus 5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>End generated capsule pages with a newline</title>
<updated>2026-09-20T00:00:00Z</updated>
<author>
<name>Nicholas Johnson</name>
<email></email>
</author>
<published>2026-09-20T00:00:00Z</published>
<link rel='alternate' type='text/html' href='https://git.nicholasjohnson.ch/hugo-theme-journal/commit/?id=708309f9c25dd69d85833edf410a7a777fdf056ebdf6042f3539520313960452'/>
<id>urn:sha256:708309f9c25dd69d85833edf410a7a777fdf056ebdf6042f3539520313960452</id>
<content type='text'>
The templates gained a final newline, but the gemtext pages they build
did not: the base template trimmed its own away, so every .gmi file
ended mid-line and was not a POSIX text file either. The web pages and
the feeds already ended with one.

Stop trimming the newline after the footer partial in the gemtext base
template. The footer partial keeps its own trim marker, so that the
newline is emitted once rather than twice.

Every generated file in the example site, gemtext and web alike, now
ends with exactly one newline, and the capsule pages are otherwise
byte-identical.

Co-Authored-By: Claude Opus 5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>End every template file with a newline</title>
<updated>2026-09-20T00:00:00Z</updated>
<author>
<name>Nicholas Johnson</name>
<email></email>
</author>
<published>2026-09-20T00:00:00Z</published>
<link rel='alternate' type='text/html' href='https://git.nicholasjohnson.ch/hugo-theme-journal/commit/?id=a221ae3c6f8da11b12eea4246f5792123c501f221f0e708456c0a5dd24c8d8a0'/>
<id>urn:sha256:a221ae3c6f8da11b12eea4246f5792123c501f221f0e708456c0a5dd24c8d8a0</id>
<content type='text'>
Fifteen templates ended without a final newline, so they were not text
files by the POSIX definition: tools that read whole lines, including
sed, wc -l, read and shells' command substitution, drop or mangle the
last line, and diffs of them carry a "\ No newline at end of file"
marker that hides which side changed.

Add the newline. The gemtext output may not change, so the four
templates whose last action is emitted verbatim into a capsule page
trim it away again with "-}}". The templates that end by closing a
define block need no marker, since the newline then falls outside the
block and is never executed, as section.gmi and single.gmi already
showed.

The capsule builds byte-identical gemtext and the feeds are unchanged.
Web pages gain the trailing newline their templates now have, which
ends the generated HTML with an EOL too.

Co-Authored-By: Claude Opus 5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Drop whitespace trimming from HTML and XML templates</title>
<updated>2026-09-20T00:00:00Z</updated>
<author>
<name>Nicholas Johnson</name>
<email></email>
</author>
<published>2026-09-20T00:00:00Z</published>
<link rel='alternate' type='text/html' href='https://git.nicholasjohnson.ch/hugo-theme-journal/commit/?id=93831052e8ba9537d47474e1f8dbf04d9eceb9b0dff214ce422fcafe1ffaecac'/>
<id>urn:sha256:93831052e8ba9537d47474e1f8dbf04d9eceb9b0dff214ce422fcafe1ffaecac</id>
<content type='text'>
Whitespace has no effect on the HTML and Atom output, so the trim
markers on nearly every action in those templates bought nothing and
made them harder to read and to edit: a maintainer had to carry the
markers along with the change. The markers are load-bearing in the
gemtext templates alone, where output whitespace is the formatting.

Remove them from the HTML and Atom templates. The audio partial keeps
its markers, since the gemtext single template uses it too. The two
markup render hooks keep theirs as well, because their output is
spliced inline into prose, where the newlines an untrimmed hook emits
render as a space before the punctuation that follows a link.

The Atom templates compute their author and entry variables before
emitting anything, so untrimmed they put blank lines ahead of the XML
declaration and left every feed malformed. Emit the declaration first
instead; whitespace is allowed after it but not before it.

The example site builds byte-identical gemtext and content-identical
feeds, and its HTML differs only by a space after a "p" start tag that
the whitespace processing model drops.

Co-Authored-By: Claude Opus 5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Update changelog</title>
<updated>2026-09-20T01:19:35Z</updated>
<author>
<name>Nicholas Johnson</name>
<email></email>
</author>
<published>2026-09-18T00:00:00Z</published>
<link rel='alternate' type='text/html' href='https://git.nicholasjohnson.ch/hugo-theme-journal/commit/?id=98be685a6f839234a0ebc07c9cba001c21c5786957d3b1d627535cfa7a56c032'/>
<id>urn:sha256:98be685a6f839234a0ebc07c9cba001c21c5786957d3b1d627535cfa7a56c032</id>
<content type='text'>
Co-Authored-By: Claude Opus 5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Document configuration in the readme</title>
<updated>2026-09-20T00:39:08Z</updated>
<author>
<name>Nicholas Johnson</name>
<email></email>
</author>
<published>2026-09-18T00:00:00Z</published>
<link rel='alternate' type='text/html' href='https://git.nicholasjohnson.ch/hugo-theme-journal/commit/?id=53754404c76218d5a5b8525ad02781a8549484c9459458b4da4fadb4dcbcaac7'/>
<id>urn:sha256:53754404c76218d5a5b8525ad02781a8549484c9459458b4da4fadb4dcbcaac7</id>
<content type='text'>
Nothing the theme reads was written down: the parameters, the front
matter keys, the output formats each page kind needs and the two
optional site files all had to be found by reading the templates. The
readme pointed at another repository for guidance instead.

List them, and point at the example site for a working pair of
configuration files. Also state the minimum Hugo version, which was
only recorded in theme.toml.

Co-Authored-By: Claude Opus 5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Add an example site</title>
<updated>2026-09-20T00:39:04Z</updated>
<author>
<name>Nicholas Johnson</name>
<email></email>
</author>
<published>2026-09-18T00:00:00Z</published>
<link rel='alternate' type='text/html' href='https://git.nicholasjohnson.ch/hugo-theme-journal/commit/?id=b171d00ceba32cd9372f2c748884474584e21f456445d12363c184deed81ded1'/>
<id>urn:sha256:b171d00ceba32cd9372f2c748884474584e21f456445d12363c184deed81ded1</id>
<content type='text'>
The theme shipped no runnable site and documented no configuration, so
every setting it reads had to be discovered by reading the templates,
and there was nothing to build against when changing them. The build
failure that unset RSS limits caused would have been caught immediately
by an example site.

The two configuration files are the separate website and capsule
configurations the readme asks for, annotated with what each setting
does and which are optional. The content demonstrates entries, tags,
references, a standalone page and the front matter keys that control
them.

Also ignore build output, which no rule previously covered.

Co-Authored-By: Claude Opus 5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Add section templates</title>
<updated>2026-09-19T23:21:32Z</updated>
<author>
<name>Nicholas Johnson</name>
<email></email>
</author>
<published>2026-09-18T00:00:00Z</published>
<link rel='alternate' type='text/html' href='https://git.nicholasjohnson.ch/hugo-theme-journal/commit/?id=0703a10e2c97bdce5fe8c2d83ce977b015bc68b2368eb43c3b3bdbc21d588155'/>
<id>urn:sha256:0703a10e2c97bdce5fe8c2d83ce977b015bc68b2368eb43c3b3bdbc21d588155</id>
<content type='text'>
Every build logged "found no layout file for html for kind section",
and the section URL that Hugo generates for the entry directory was
rendered as an empty page in both output formats. The warning was left
for each site using the theme to work around.

List the section's pages the way the term templates do, and link the
section feed when the site configures one.

Co-Authored-By: Claude Opus 5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
</feed>
