summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-07-15 22:37:08 +0800
committerEltrac <hi@guhub.cn>2025-07-15 22:37:08 +0800
commit0d97407ab88288de8219dbcae5ff4afde892cb39 (patch)
tree339a2100ff22fb4c8a671fd98b987681f0343fdd
parentb7965b16975b4dce7fb1e02d0590271980f4edba (diff)
fix: unnatural gap in cards under one term
Former-commit-id: 20eedd6b64cc7782f3aec93750f2054b5f47168a
-rw-r--r--layouts/term.html12
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 }}