diff options
| author | Eltrac <hi@guhub.cn> | 2025-05-09 12:44:10 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-05-09 12:44:10 +0800 |
| commit | 8eb3611c50f1cb8378a5905442f80cbd28dfd968 (patch) | |
| tree | dd685952389ad3146481b586676dd5f058c05e37 | |
| parent | 88c99a8c47b78b74d4d1ed2248c5af1186f7a1b7 (diff) | |
perf: remove placeholder image to reduce RPS
| -rw-r--r-- | layouts/library/yearlist.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/library/yearlist.html b/layouts/library/yearlist.html index ac0d5417..c5d46bee 100644 --- a/layouts/library/yearlist.html +++ b/layouts/library/yearlist.html @@ -9,8 +9,8 @@ {{ if eq (printf "%d" .Date.Year) $year }} <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 }}!thumbnail" - class="lazy" data-src="{{ .Params.cover }}" + <img + class="lazy" src="{{ .Params.cover }}" style="view-transition-name: book-{{ .File.UniqueID }}" /> </a> </div> |
