summaryrefslogtreecommitdiff
path: root/layouts/_partials
Commit message (Collapse)AuthorAge
* Handle missing optional site files gracefullyNicholas Johnson15 hours
| | | | | | | | | | | | | | Two site files the theme reads were assumed to exist. A site without templates/logo.txt got an empty preformatted block at the top of every page in both output formats, styled with the logo's margins, rather than no logo at all. A typo in params.custom_css produced a nil pointer error naming only the template line, since the result of resources.Get was used without checking it. Skip the header entirely when there is no logo, and report a missing stylesheet by name. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* Choose the best audio version of an entryNicholas Johnson17 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>
* Include the site title in page titlesNicholas Johnson17 hours
| | | | | | | | | | | Entry and taxonomy pages set the document title to the page title on its own, so a bookmark, a browser tab or a search result gave no indication of which site the page belonged to. Append the site title everywhere except the homepage, where the two are already the same. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* Advertise Atom feeds to browsers and readersNicholas Johnson17 hours
| | | | | | | | | | | | The feeds were only reachable by following the visible link on a taxonomy or term page, and the homepage did not link to its feed at all. Without a rel="alternate" element in the document head, feed readers and browser extensions cannot discover a feed from the page it belongs to. Emit the link on any page that has an Atom output format, so each page advertises its own feed rather than a hardcoded site-wide one. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* Add audio support for entries on capsuleNicholas Johnson2026-09-06
|
* Add audio support for entries on websiteNicholas Johnson2026-09-06
|
* Minify and fingerprint CSS stylesheetNicholas Johnson2026-09-06
| | | | This improves page performance and load times.
* Replace visual dividers w/space for entry metadataNicholas Johnson2026-09-06
| | | | Less visual clutter, improves readability.
* 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.