From f5534bfb9ca8c8c22a4124c6a3629d54513c307e Mon Sep 17 00:00:00 2001
From: si-kui-a <147837261+si-kui-a@users.noreply.github.com>
Date: Sun, 15 Nov 2026 00:59:39 +0000
Subject: [PATCH] fix(series): look up multi-word series names via Taxonomy.Get, not anchorize (#1011)

---
 layouts/_partials/posts/series.html |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/layouts/_partials/posts/series.html b/layouts/_partials/posts/series.html
index 9a5b802..bc3b67d 100644
--- a/layouts/_partials/posts/series.html
+++ b/layouts/_partials/posts/series.html
@@ -2,8 +2,10 @@
 {{ if .Params.series }}
 <section class="see-also">
   {{ range .Params.series }}
-    {{ $name := . | anchorize }}
-    {{ $series := index $.Site.Taxonomies.series $name }}
+    {{/* Hugo's taxonomy map key is the lowercased term (see Taxonomy.Get), not the
+      anchorized/hyphenated form - looking it up via `anchorize` silently failed to
+      find multi-word series names containing spaces (#980). */}}
+    {{ $series := $.Site.Taxonomies.series.Get . }}
     {{ if gt (len $series.Pages) 1 }}
       <h3 id="{{ i18n "see_also" | default "See also in" | anchorize }}-{{ anchorize . | safeURL }}">
         {{ i18n "see_also" | default "See also in" }} {{ . }}

--
Gitblit v1.10.0