summaryrefslogtreecommitdiff
path: root/layouts/_markup/render-link.html
diff options
context:
space:
mode:
authorNicholas Johnson <>2026-09-18 00:00:00 +0000
committerNicholas Johnson <>2026-09-19 16:15:23 -0400
commit424afe0f8fed829758cc4d09722b4cfd98268734f82b799962369478389cf5dc (patch)
treea43292a8f9bdf43393076cd098ef395df4f651a92f6f32fc0bb396a856b9b0c9 /layouts/_markup/render-link.html
parent8963ab91a272a57120273703dc2716aae16669dca18fe2c39b9fb18268a3e275 (diff)
downloadhugo-theme-journal-424afe0f8fed829758cc4d09722b4cfd98268734f82b799962369478389cf5dc.tar.gz
hugo-theme-journal-424afe0f8fed829758cc4d09722b4cfd98268734f82b799962369478389cf5dc.zip
Choose the best audio version of an entry
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>
Diffstat (limited to 'layouts/_markup/render-link.html')
0 files changed, 0 insertions, 0 deletions