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 | e985258cc6769080d657e13f76b86928b1f47a97 (patch) | |
| tree | 2308a154a9d34194c448802ec6580ecbc79f1873 /layouts/library/section.html | |
| parent | 56f5db6749ff32eea2db51df7225017a31c21e6a (diff) | |
feat: distinguish book books and bad books with styles
Former-commit-id: 8a355d8a7066b95eeb5356c79957a2df8f160c57
Diffstat (limited to 'layouts/library/section.html')
| -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> |
