summaryrefslogtreecommitdiff
path: root/layouts/cards/section.html
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-04-07 14:53:17 +0800
committereltrac <hi@eltr.ac>2026-04-07 14:53:17 +0800
commit10431bd8f5ff71690ae4e5444e8d7894fd401ae5 (patch)
tree62b7fd1b6c1f68d2804f380eb522bcebeb2c8d9f /layouts/cards/section.html
parent3e0edacc4a0cafa53ede57ebb6f0378c93f3123b (diff)
chore: move templates out of site repo
Diffstat (limited to 'layouts/cards/section.html')
-rw-r--r--layouts/cards/section.html29
1 files changed, 0 insertions, 29 deletions
diff --git a/layouts/cards/section.html b/layouts/cards/section.html
deleted file mode 100644
index 2ea36990..00000000
--- a/layouts/cards/section.html
+++ /dev/null
@@ -1,29 +0,0 @@
-{{ define "main" }}
-<article>
-
- <div class="bg-red-200 text-red b-1 b-solid b-red px-4 py-2 rd-md">
- <p>「卡片」分区已经弃用,这里的内容不会再更新。</p>
- </div>
-
- {{- $pages := .RegularPages }}
- {{- $featured := first 6 $pages }}
- {{- $rest := after 6 $pages }}
- <div class="grid md:grid-cols-2 gap-4 my-4">
- {{- range $featured }}
- {{ partial "items/card" (dict
- "context" .
- "summary" true
- "summaryClass" "text-base!") }}
- {{- end }}
- </div>
-
- <div class="grid grid-cols-3 gap-4 list-none text-lg">
- {{- range $rest }}
- <a class="border-b-dashed border-b-1 border-b-neutral-300 dark:border-b-neutral-700
- flex items-end py-1
- block text-secondary hover:text-unset hover:no-underline transition"
- href="{{ .RelPermalink }}">{{ .Title }}</a>
- {{- end }}
- </div>
-</article>
-{{ end }}