summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-09-24 23:53:24 +0800
committerEltrac <hi@guhub.cn>2025-09-24 23:53:24 +0800
commita65d93a173cc5160bead88d0181478271d12ecda (patch)
tree1f957c725dcbe83d00562f3e1fbd1a1519128c01
parent5525a7e4766985ca3eed0a5a1d5a28d6b09d539e (diff)
remove: cards from term page
Former-commit-id: a84c60e14adce8f2912916c4c1cc67b4093b7f2a
-rw-r--r--layouts/_partials/term/term-cards.html11
-rw-r--r--layouts/term.html1
2 files changed, 0 insertions, 12 deletions
diff --git a/layouts/_partials/term/term-cards.html b/layouts/_partials/term/term-cards.html
deleted file mode 100644
index f9cd4c1a..00000000
--- a/layouts/_partials/term/term-cards.html
+++ /dev/null
@@ -1,11 +0,0 @@
-{{ $cards := where .Pages "Section" "eq" "cards" }}
-{{ if gt (len $cards) 0 }}
-<h2>{{ T "termPage.cards" }}</h2>
-<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 }}
diff --git a/layouts/term.html b/layouts/term.html
index ca87a2a2..f0d29bb4 100644
--- a/layouts/term.html
+++ b/layouts/term.html
@@ -5,7 +5,6 @@
{{ partial "term/term-header" . }}
<section>
{{ partial "term/term-posts" . }}
- {{ partial "term/term-cards" . }}
{{ partial "term/term-books" . }}
</section>
</article>