summaryrefslogtreecommitdiff
path: root/layouts/library/section.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-11-06 11:01:00 +0800
committerEltrac <hi@guhub.cn>2025-11-06 11:01:00 +0800
commit8983b2a48d16bc763f5181bb974ee73efbcaafff (patch)
tree209f89b06865e39a7bfc7ba08c72509be35569fe /layouts/library/section.html
parentd5a29ffa1c93b3fded194400e62f118fb06c5df7 (diff)
fix: duplicated view transition names in library page
Diffstat (limited to 'layouts/library/section.html')
-rw-r--r--layouts/library/section.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/layouts/library/section.html b/layouts/library/section.html
index 973c6351..a7df419a 100644
--- a/layouts/library/section.html
+++ b/layouts/library/section.html
@@ -14,7 +14,9 @@
{{ range $i, $book := $first18BooksThisYear }}
<div class="{{ if gt $i 15 }}hidden md:block{{ end }}"
data-tooltip="{{ $book.Title }}">
- {{ partial "items/book" $book }}
+ {{ partial "items/book" (dict
+ "ctx" $book
+ ) }}
</div>
{{ end }}
</div>
@@ -47,7 +49,12 @@
)}}
<div class="grid grid-cols-4 md:grid-cols-6 items-center gap-4 my-4">
{{ range $goodBooks }}
- <div data-tooltip="{{ .Title }}">{{ partial "items/book" . }}</div>
+ <div data-tooltip="{{ .Title }}">
+ {{ partial "items/book" (dict
+ "ctx" .
+ "NoViewTransition" true
+ ) }}
+ </div>
{{ end }}
</div>
</div>