From 4ae3f56feb11576de4823615f076fef73b395b2e Mon Sep 17 00:00:00 2001 From: Vidminas <5411598+Vidminas@users.noreply.github.com> Date: Thu, 9 Jul 2026 16:31:10 +0100 Subject: [PATCH] fix(authors): don't wrap author names in empty-href anchors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Author profile pages default to `build.render: never`, so an author's term page resolves via GetPage but has an empty RelPermalink. The author list linked whenever the term-page object existed, emitting `Name` — a self-link on every author (or a link to an unbuilt 404 on Hugo versions that keep a permalink for render-suppressed pages). Only render the anchor when RelPermalink is non-empty; otherwise show the name as plain text. Co-Authored-By: Claude Opus 4.8 --- modules/blox/layouts/_partials/page_metadata_authors.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/blox/layouts/_partials/page_metadata_authors.html b/modules/blox/layouts/_partials/page_metadata_authors.html index 8583628a0..756b07591 100644 --- a/modules/blox/layouts/_partials/page_metadata_authors.html +++ b/modules/blox/layouts/_partials/page_metadata_authors.html @@ -16,7 +16,7 @@ {{- if gt $index 0 }}, {{ end -}} - {{- if $termPage -}} + {{- if and $termPage $termPage.RelPermalink -}} {{ $display }} {{- else -}} {{ $display }}