diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-17 11:25:10 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-17 11:25:10 +0800 |
| commit | ec41236bc88a0762656413c38044ffa256bd93cb (patch) | |
| tree | 2d6f685fbe9ebb998e29dfcc9d1db9289238c1fe /layouts/library/section.html | |
| parent | 1160eda3a7de8ffaf1562e65187cec783081d491 (diff) | |
refactor: avoid using straight value in UnoCSS
Diffstat (limited to 'layouts/library/section.html')
| -rw-r--r-- | layouts/library/section.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/library/section.html b/layouts/library/section.html index 82b12b40..21107382 100644 --- a/layouts/library/section.html +++ b/layouts/library/section.html @@ -3,7 +3,7 @@ <article id="library"> <div id="library-content"> <h2>{{ now.Year }} 年读的书</h2> - <div class="grid grid-cols-4 md:grid-cols-6 items-center gap-[1rem] my-[1rem]"> + <div class="grid grid-cols-4 md:grid-cols-6 items-center gap-4 my-4"> {{ range where .Site.RegularPages "Section" "library" }} {{ if eq .Date.Year now.Year }} {{ partial "items/book" . }} @@ -29,7 +29,7 @@ </div> <h2>推荐好书</h2> - <div class="grid grid-cols-4 md:grid-cols-6 items-center gap-[1rem] my-[1rem]"> + <div class="grid grid-cols-4 md:grid-cols-6 items-center gap-4 my-4"> {{ range where (where .Site.RegularPages "Section" "library") ".Params.rating" "==" 5 }} {{ partial "items/book" . }} {{ end }} |
