Legacy articles whose author key has no data/author/*.json profile render a broken byline. This is pre-existing (not caused by any recent paginator change) — surfaced during review of #509 / #265.
Symptoms
- Listing pages (
layouts/_default/li.html:17): <a href="/authors/{{ $author.key }}">{{ $author.name }}</a> renders as <a href="/authors/"></a> — an empty link pointing at the generic authors index.
- Single article pages (
layouts/_default/single.html:15): {{ printf "#author-bio-%s" $author.key }} leaks a Go nil-format string into the DOM: href="#author-bio-%!s(<nil>)".
Affected authors (missing profiles)
james-d-tisdall (e.g. content/legacy/_pub_2001_11_16_perlbio2.md)
sean-m--burke
Suggested fix
Either add the two data/author/*.json profiles (schema: name, key, bio, image), and/or guard the templates so a missing author lookup falls back to a title-cased slug instead of rendering an empty/nil link.
Found via /code-review-intense-flow (GEO lens) on #509.
Legacy articles whose author key has no
data/author/*.jsonprofile render a broken byline. This is pre-existing (not caused by any recent paginator change) — surfaced during review of #509 / #265.Symptoms
layouts/_default/li.html:17):<a href="/authors/{{ $author.key }}">{{ $author.name }}</a>renders as<a href="/authors/"></a>— an empty link pointing at the generic authors index.layouts/_default/single.html:15):{{ printf "#author-bio-%s" $author.key }}leaks a Go nil-format string into the DOM:href="#author-bio-%!s(<nil>)".Affected authors (missing profiles)
james-d-tisdall(e.g.content/legacy/_pub_2001_11_16_perlbio2.md)sean-m--burkeSuggested fix
Either add the two
data/author/*.jsonprofiles (schema:name,key,bio,image), and/or guard the templates so a missing author lookup falls back to a title-cased slug instead of rendering an empty/nillink.Found via
/code-review-intense-flow(GEO lens) on #509.