summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/library/page.html4
1 files 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) }}
<h2>我读过的 {{ $author }} 的其它书籍</h2>
<div class="grid grid-cols-4 md:grid-cols-6 items-center gap-4 my-4">
{{ range $term.Pages }}