From 4210bcb5a22c5dd891b8a3f05a73be2526a6cf0a Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 19 Dec 2025 01:38:51 +0100 Subject: [PATCH] WAR: thymeleaf-theme: Added template `archives.html` (based on PaperMod) --- layouts/baseof.html | 6 +++++- layouts/blog/section.html | 11 ++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/layouts/baseof.html b/layouts/baseof.html index aa820cc5..58611b42 100644 --- a/layouts/baseof.html +++ b/layouts/baseof.html @@ -9,7 +9,11 @@ {{- partial "breadcrumb.html" . }}
-

{{ .Title }}

+
+ {{- block "title" . }} +

{{ .Title }}

+ {{ end }} +
{{- block "main" . }}{{ end }}
diff --git a/layouts/blog/section.html b/layouts/blog/section.html index 229ebc29..46d76f64 100644 --- a/layouts/blog/section.html +++ b/layouts/blog/section.html @@ -1,6 +1,4 @@ -{{- define "main" }} - -
{{- end }} - +{{- end }} +{{- define "main" }} {{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} {{- if site.Params.ShowAllPagesInArchive }} @@ -41,7 +40,6 @@ {{- $year -}} -  {{ len .Pages }} {{- range .Pages.GroupByDate "January" }}
@@ -50,7 +48,7 @@ {{- if eq .Kind "page" }}

- {{- .Title | markdownify }} + {{- .Title | markdownify }} {{- if .Draft }} @@ -63,7 +61,6 @@
{{- partial "post_meta.html" . -}}
-

{{- end }} {{- end }} -- 2.39.5