aboutsummaryrefslogtreecommitdiff
path: root/layouts/single.gmi
Commit message (Collapse)AuthorAge
* Ignore blank lines between front matter and entry bodyNicholas Johnson23 hours
| | | | | | | | | | | | | | .RawContent keeps the newline that follows the closing front matter delimiter, and only trailing whitespace was being chomped. An entry written with a blank line there, which is what the entry archetype produces, got one more blank line under its pageinfo line in the gemtext than an entry written without one. The same leading newline also hid a heading on the first line from the check that decides whether to add a separating newline, since that pattern is anchored to the start of the content. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* Choose the best audio version of an entryNicholas Johnson25 hours
| | | | | | | | | | | | | | | | | | | | | | | | | Both templates took element 0 of the entry's audio resources, so an entry carrying more than one encoding used whichever filename sorted first, with no way to express a preference. An entry with a careful encoding and an mp3 beside it would commonly have offered the mp3. Order the resources by how they sound instead. Public listening tests put Opus ahead of the field at the bitrates spoken word uses, with Vorbis and AAC close behind it and MP3 last; the lossless formats come after the lossy ones rather than before, since a browser that can play FLAC would otherwise fetch several times the bytes for no audible gain. Formats the theme does not rank keep Hugo's own order at the end. The capsule links the first of them, since a Gemini client cannot choose between sources and a reader wants one file to fetch. The website offers them all as the alternative sources that the audio element exists to choose between, best first, so a browser plays the best encoding it understands. Hugo reports .opus, .oga and .ogg alike as audio/ogg, so the ordering keys off the file extension rather than the media type. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* Fix preformatted text opening an entry being treated as proseNicholas Johnson3 days
| | | | | | | | | | | | | | | The chunking regex required at least one character before a preformatted block, so a block starting on the first line of an entry could never match the preformatted branch and fell through to the prose branch. Its contents were then run through the prose substitutions: asterisks were stripped, ordered list items were rewritten as unordered ones and links were turned into references, inside text that must be reproduced verbatim. Allow the leading segment to be empty. Blocks elsewhere in an entry, multiple blocks and reference numbering are unaffected. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* Add audio support for entries on capsuleNicholas Johnson2026-09-06
|
* Move pageinfo below heading for capsuleNicholas Johnson2026-09-06
|
* Replace ".Name" with ".Title" for entry headingsNicholas Johnson2026-09-06
| | | | | I'm not sure if this change makes a difference, but .Title seems to be the canonical option in this context.
* Migrate fully to Hugo's new template systemNicholas Johnson2025-07-26
This was the only way I could get term pages to consistently render correctly.