From 8983b2a48d16bc763f5181bb974ee73efbcaafff Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 6 Nov 2025 11:01:00 +0800 Subject: fix: duplicated view transition names in library page --- layouts/_partials/items/book.html | 15 +++++++++------ layouts/_partials/term/term-books.html | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) (limited to 'layouts/_partials') diff --git a/layouts/_partials/items/book.html b/layouts/_partials/items/book.html index dca2961b..5a8c8efd 100644 --- a/layouts/_partials/items/book.html +++ b/layouts/_partials/items/book.html @@ -1,14 +1,17 @@ +{{ $ctx := .ctx }} +{{ $NoViewTransition := (or .NoViewTransition false) }} - + - - {{ if eq .Params.rating 1 }} + + {{ if eq $ctx.Params.rating 1 }}
{{ range $books }} - {{ partial "items/book" . }} + {{ partial "items/book" (dict "ctx" .) }} {{ end }}
{{ end }} -- cgit v1.2.3