From 0d97407ab88288de8219dbcae5ff4afde892cb39 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Tue, 15 Jul 2025 22:37:08 +0800 Subject: fix: unnatural gap in cards under one term Former-commit-id: 20eedd6b64cc7782f3aec93750f2054b5f47168a --- layouts/term.html | 12 +++++++----- 1 file 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" }} -
+
{{ partial "header.html" . }} {{ partial "components/postnav.html" . }}
@@ -34,10 +34,12 @@ {{ $cards := where .Pages "Section" "eq" "cards" }} {{ if gt (len $cards) 0 }}

{{ T "termPage.cards" }}

-
- {{ range $cards }} - {{ partial "items/card" (dict "context" . "summary" true) }} - {{ end }} +
+
+ {{ range $cards }} + {{ partial "items/card" (dict "context" . "summary" true) }} + {{ end }} +
{{ end }} -- cgit v1.2.3