diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-15 22:37:08 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-15 22:37:08 +0800 |
| commit | 0d97407ab88288de8219dbcae5ff4afde892cb39 (patch) | |
| tree | 339a2100ff22fb4c8a671fd98b987681f0343fdd /layouts/term.html | |
| parent | b7965b16975b4dce7fb1e02d0590271980f4edba (diff) | |
fix: unnatural gap in cards under one term
Former-commit-id: 20eedd6b64cc7782f3aec93750f2054b5f47168a
Diffstat (limited to 'layouts/term.html')
| -rw-r--r-- | layouts/term.html | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/layouts/term.html b/layouts/term.html index 0dfdc429..7c401c79 100644 --- a/layouts/term.html +++ b/layouts/term.html @@ -1,5 +1,5 @@ {{ define "main" }} - <article class="posts termlist-page"> + <article> {{ partial "header.html" . }} {{ partial "components/postnav.html" . }} <div class="term-header"> @@ -34,10 +34,12 @@ {{ $cards := where .Pages "Section" "eq" "cards" }} {{ if gt (len $cards) 0 }} <h2>{{ T "termPage.cards" }}</h2> - <div class="grid grid-cols-2 gap-x-[1rem]"> - {{ range $cards }} - {{ partial "items/card" (dict "context" . "summary" true) }} - {{ end }} + <div class="outbox small"> + <div class="grid grid-cols-2 gap-4"> + {{ range $cards }} + {{ partial "items/card" (dict "context" . "summary" true) }} + {{ end }} + </div> </div> {{ end }} |
