From 7cafed5c40d207ccba358871a2435fd80413c6af Mon Sep 17 00:00:00 2001 From: eltrac Date: Thu, 14 May 2026 11:42:25 +0800 Subject: fix(library): cannot find related books by English named author Hugo convers term name to lower cases hence indexing it requires to convert as well. --- layouts/library/page.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/library/page.html b/layouts/library/page.html index eb5f152..4cfbc19 100644 --- a/layouts/library/page.html +++ b/layouts/library/page.html @@ -38,8 +38,8 @@ {{ with .Params.authors }} {{ $author := index . 0 }} - {{ $term := index $.Site.Taxonomies.authors $author }} - {{ if and $term (gt (len $term.Pages) 1) }} + {{ $term := index $.Site.Taxonomies.authors (lower $author) }} + {{ if and $term (gt (len $term.Pages) 0) }}

我读过的 {{ $author }} 的其它书籍

{{ range $term.Pages }} -- cgit v1.2.3