summaryrefslogtreecommitdiff
path: root/layouts/struct/section.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-11-27 22:37:21 +0800
committerEltrac <hi@guhub.cn>2025-11-27 22:37:21 +0800
commit7ee4eff516985967d9b4d610012918387764c831 (patch)
tree3f28e8ed2ed0fc1626ed4dd6c46912ce85bf6133 /layouts/struct/section.html
parent3f50451e2857abde4d0777f90816697304071bbb (diff)
docs: split posts into essays and other posts
Diffstat (limited to 'layouts/struct/section.html')
-rw-r--r--layouts/struct/section.html37
1 files changed, 0 insertions, 37 deletions
diff --git a/layouts/struct/section.html b/layouts/struct/section.html
deleted file mode 100644
index 183dec14..00000000
--- a/layouts/struct/section.html
+++ /dev/null
@@ -1,37 +0,0 @@
-{{ define "main" }}
- <article>
- {{ partial "header.html" . }}
- <div class="posts-list pagefind-exclude">
- <div class="markdown-body">{{ .Content }}</div>
- <!-- Post Archive List -->
- {{ $remainingMonthsToOpen := 3 }}
- {{ range (where site.RegularPages "Type" "eq" "struct").GroupByDate "2006" -}}
- <section class="w-full">
- {{ partial "components/section-title" (dict
- "Left" .Key
- "Right" (T "archivePage.postCountAnnual" (len .Pages))
- )}}
-
- {{ range .Pages.GroupByDate "January" }}
- <details class="posts-month-archive"{{ if gt $remainingMonthsToOpen 0 }} open{{ end }}>
- <summary class="flex items-center border-b border-b-dashed border-[var(--border-color)] py-2 px-1">
- <h2 class="text-size-lg inline-block w-full m-0
- flex justify-between items-center">
- {{ .Key }}
- <small class="font-mono text-secondary text-3">{{ T "archivePage.postCountMonthly" (len .Pages) }}</small>
- </h2>
- </summary>
- <ul class="ps-0 flex flex-col gap-2 list-none leading-relaxed">
- {{ range .Pages }}
- {{ partial "items/post-small" . }}
- {{ end }}
- </ul>
- </details>
- {{ $remainingMonthsToOpen = sub $remainingMonthsToOpen 1 }}
- {{ end }}
- </section>
- {{ end }}
- </div>
- </article>
- {{ partial "footer.html" . }}
-{{ end }}