summaryrefslogtreecommitdiff
path: root/layouts/library
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-03-27 14:14:15 +0800
committerEltrac <hi@guhub.cn>2025-03-27 14:14:15 +0800
commit8a355d8a7066b95eeb5356c79957a2df8f160c57 (patch)
tree79a645b8136efb11fa174f17b5dc2f75b693cb4e /layouts/library
parentf4b81beea390c89029b2f5c2a32511100589cec8 (diff)
feat: distinguish book books and bad books with styles
Diffstat (limited to 'layouts/library')
-rw-r--r--layouts/library/section.html2
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>