diff options
| author | Eltrac <hi@guhub.cn> | 2025-03-27 14:14:15 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-03-27 14:14:15 +0800 |
| commit | 8a355d8a7066b95eeb5356c79957a2df8f160c57 (patch) | |
| tree | 79a645b8136efb11fa174f17b5dc2f75b693cb4e /layouts | |
| parent | f4b81beea390c89029b2f5c2a32511100589cec8 (diff) | |
feat: distinguish book books and bad books with styles
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/library/section.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/library/section.html b/layouts/library/section.html index 834717e7..bc55b500 100644 --- a/layouts/library/section.html +++ b/layouts/library/section.html @@ -3,7 +3,7 @@ <article id="library"> <div id="library-content"> {{- range .Pages }} - <div class="book"> + <div class="book{{ if eq .Params.rating 1 }} badbook{{ end }}{{ if eq .Params.rating 5 }} goodbook{{ end }}"> <a href="{{ .Permalink }}" class="book-cover" style="view-transition-name: book-{{ .Title }}"> <img src="{{ .Params.cover }}" /> </a> |
