diff options
| author | eltrac <hi@eltr.ac> | 2026-04-07 14:53:17 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-04-07 14:53:17 +0800 |
| commit | 10431bd8f5ff71690ae4e5444e8d7894fd401ae5 (patch) | |
| tree | 62b7fd1b6c1f68d2804f380eb522bcebeb2c8d9f /layouts/weekly | |
| parent | 3e0edacc4a0cafa53ede57ebb6f0378c93f3123b (diff) | |
chore: move templates out of site repo
Diffstat (limited to 'layouts/weekly')
| -rw-r--r-- | layouts/weekly/page.html | 3 | ||||
| -rw-r--r-- | layouts/weekly/section.html | 41 |
2 files changed, 0 insertions, 44 deletions
diff --git a/layouts/weekly/page.html b/layouts/weekly/page.html deleted file mode 100644 index e093e810..00000000 --- a/layouts/weekly/page.html +++ /dev/null @@ -1,3 +0,0 @@ -{{ define "main" }} - {{ partial "template/post-page" . }} -{{ end }} diff --git a/layouts/weekly/section.html b/layouts/weekly/section.html deleted file mode 100644 index c1bc53b9..00000000 --- a/layouts/weekly/section.html +++ /dev/null @@ -1,41 +0,0 @@ -{{ define "main" }} - {{ $pages := .Pages }} - {{ $categories := slice }} - - <article> - <div class="posts-list pagefind-exclude"> - <div class="markdown-body">{{ .Content }}</div> - - <!-- Post Archive List --> - {{ $remainingMonthsToOpen := 3 }} - {{ range $pages.GroupByDate "2006" -}} - <section class="w-full"> - {{ partial "components/section-title" (dict - "Left" .Key - "Right" (T "archivePage.postCountAnnual" (len .Pages)) - )}} - - {{ range .Pages.GroupByDate "January" }} - <div class="lazy-render"{{ if gt $remainingMonthsToOpen 0 }} open{{ end }}> - <h2 class="text-size-lg inline-block w-full m-0 - flex justify-between items-center"> - {{ .Key }} - </h2> - <ul class="ps-0 flex flex-col gap-2 list-none leading-relaxed"> - {{ range .Pages }} - <li class="text-size-lg"> - <a href="{{ .RelPermalink }}"> - {{ .Title }}{{ with .Params.subtitle }}:<span class="text-secondary">{{. }}</span> - {{ end }} - </a> - </li> - {{ end }} - </ul> - </div> - {{ $remainingMonthsToOpen = sub $remainingMonthsToOpen 1 }} - {{ end }} - </section> - {{ end }} - </div> - </article> -{{ end }} |
