diff options
Diffstat (limited to 'layouts/library')
| -rw-r--r-- | layouts/library/page.html | 4 | ||||
| -rw-r--r-- | layouts/library/section.html | 11 | ||||
| -rw-r--r-- | layouts/library/yearlist.html | 3 |
3 files changed, 14 insertions, 4 deletions
diff --git a/layouts/library/page.html b/layouts/library/page.html index bcd36854..df2192de 100644 --- a/layouts/library/page.html +++ b/layouts/library/page.html @@ -49,7 +49,9 @@ <div class="grid grid-cols-4 md:grid-cols-6 items-center gap-4 my-4"> {{ range $books }} {{ if ne .File.UniqueID $thisBookID }} - <div data-tooltip="{{ .Title }}">{{ partial "items/book" . }}</div> + <div data-tooltip="{{ .Title }}"> + {{ partial "items/book" (dict "ctx" .) }} + </div> {{ end }} {{ end }} </div> 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> diff --git a/layouts/library/yearlist.html b/layouts/library/yearlist.html index 8250046d..1405cb27 100644 --- a/layouts/library/yearlist.html +++ b/layouts/library/yearlist.html @@ -7,7 +7,8 @@ {{ $year := .Title }} {{ range where .Site.RegularPages "Section" "library" }} {{ if eq (printf "%d" .Date.Year) $year }} - <div data-tooltip="{{ .Title }}">{{ partial "items/book" . }}</div> + <div data-tooltip="{{ .Title }}"> + {{ partial "items/book" (dict "ctx" .) }}</div> {{ end }} {{ end }} </div> |
