From: Kai Moritz Date: Fri, 19 Dec 2025 00:38:51 +0000 (+0100) Subject: WAR: thymeleaf-theme: Added template `archives.html` (based on PaperMod) X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=4210bcb5a22c5dd891b8a3f05a73be2526a6cf0a;p=website WAR: thymeleaf-theme: Added template `archives.html` (based on PaperMod) --- 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 }}