From b34379cf2667f67f00007e8e64bebf20373105c1 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Mon, 1 Sep 2025 11:30:07 -0700 Subject: Move custom archives.html changes into subtree --- layouts/_default/archives.html | 87 -------------------------- themes/PaperMod/layouts/_default/archives.html | 4 ++ 2 files changed, 4 insertions(+), 87 deletions(-) delete mode 100644 layouts/_default/archives.html diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html deleted file mode 100644 index 3ff94ba..0000000 --- a/layouts/_default/archives.html +++ /dev/null @@ -1,87 +0,0 @@ -{{- define "main" }} - - - -
-{{ .Content }} -
- -{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} - -{{- if site.Params.ShowAllPagesInArchive }} -{{- $pages = site.RegularPages }} -{{- end }} - -{{- range $pages.GroupByPublishDate "2006" }} -{{- if ne .Key "0001" }} -
- {{- $year := replace .Key "0001" "" }} -

- - {{- $year -}} - -  {{ len .Pages }} -

- {{- range .Pages.GroupByDate "January" }} -
-

- - {{- .Key -}} - -  {{ len .Pages }} -

-
- {{- range .Pages }} - {{- if eq .Kind "page" }} -
-

- {{- .Title | markdownify }} - {{- if .Draft }} - - - - - - {{- end }} -

-
- {{- partial "post_meta.html" . -}} -
- -
- {{- end }} - {{- end }} -
-
- {{- end }} -
-{{- end }} -{{- end }} - -{{- end }}{{/* end main */}} diff --git a/themes/PaperMod/layouts/_default/archives.html b/themes/PaperMod/layouts/_default/archives.html index eea3fc8..3ff94ba 100644 --- a/themes/PaperMod/layouts/_default/archives.html +++ b/themes/PaperMod/layouts/_default/archives.html @@ -27,6 +27,10 @@ {{- end }} +
+{{ .Content }} +
+ {{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} {{- if site.Params.ShowAllPagesInArchive }} -- cgit v1.3.1