diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-14 21:12:05 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-14 21:12:05 +0800 |
| commit | cd1c5a16954b73d8ba3e3bfafe5e633e5ecfd029 (patch) | |
| tree | b0aeed2742274b62d8139bb524f6f3a3d44b88e8 /layouts/library/section.html | |
| parent | 5f3933751ede3845ebc3ff319986d25515501522 (diff) | |
feat: new fictions section page
Diffstat (limited to 'layouts/library/section.html')
| -rw-r--r-- | layouts/library/section.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/layouts/library/section.html b/layouts/library/section.html index 221cc005..217936d8 100644 --- a/layouts/library/section.html +++ b/layouts/library/section.html @@ -7,11 +7,10 @@ <div class="book-group"> {{ range where .Site.RegularPages "Section" "library" }} {{ if eq .Date.Year now.Year }} - <div class="book{{ if eq .Params.rating 1 }} badbook{{ end }}{{ if eq .Params.rating 5 }} goodbook{{ end }}"> + <div class="book{{ if eq .Params.rating 1 }} badbook{{ end }}{{ if eq .Params.rating 5 }} goodbook{{ end }}" + style="view-transition-name: book-{{ .File.UniqueID }}"> <a href="{{ .Permalink }}" class="book-cover" style="view-transition-name: book-{{ .Title }}"> - <img - class="lazy" src="{{ .Params.cover }}!small" - style="view-transition-name: book-{{ .File.UniqueID }}" /> + <img class="lazy" src="{{ .Params.cover }}!small" /> </a> </div> {{ end }} |
