From 6e434c3d57ee22470a20232fae8c536b5ab25099 Mon Sep 17 00:00:00 2001 From: eltrac Date: Tue, 16 Jun 2026 15:58:47 +0800 Subject: fix(library/page): unwanted empty list when it's the only one book of an author --- layouts/library/page.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/library/page.html b/layouts/library/page.html index 4cfbc19..ee8d0fc 100644 --- a/layouts/library/page.html +++ b/layouts/library/page.html @@ -39,7 +39,7 @@ {{ with .Params.authors }} {{ $author := index . 0 }} {{ $term := index $.Site.Taxonomies.authors (lower $author) }} - {{ if and $term (gt (len $term.Pages) 0) }} + {{ if and $term (gt (len $term.Pages) 1) }}

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

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