diff options
| author | Eltrac <hi@guhub.cn> | 2025-11-27 22:37:21 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-11-27 22:37:21 +0800 |
| commit | 7ee4eff516985967d9b4d610012918387764c831 (patch) | |
| tree | 3f28e8ed2ed0fc1626ed4dd6c46912ce85bf6133 /layouts/struct | |
| parent | 3f50451e2857abde4d0777f90816697304071bbb (diff) | |
docs: split posts into essays and other posts
Diffstat (limited to 'layouts/struct')
| -rw-r--r-- | layouts/struct/section.html | 37 |
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 }} |
