From a2c6ff0a75b84243ca844d3974f5d57171b82c66 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 19 Dec 2025 11:37:52 +0100 Subject: [PATCH] =?utf8?q?Spezial-Men=C3=BC=20f=C3=BCr=20die=20Untersektio?= =?utf8?q?nen=20von=20`blog`=20anstatt=20f=C3=BCr=20`blog`=20selbst=20--?= =?utf8?q?=20MOVE?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- content/blog/{ => 2013}/article.html | 0 content/blog/{ => 2020}/comments.html | 0 content/blog/{ => 2021}/wp2hugo.html | 0 layouts/_partials/menu/tree.html | 77 +++++++++++++++++++ layouts/blog/year.html | 105 ++++++++++++++++++++++++++ 5 files changed, 182 insertions(+) rename content/blog/{ => 2013}/article.html (100%) rename content/blog/{ => 2020}/comments.html (100%) rename content/blog/{ => 2021}/wp2hugo.html (100%) create mode 100644 layouts/_partials/menu/tree.html create mode 100644 layouts/blog/year.html diff --git a/content/blog/article.html b/content/blog/2013/article.html similarity index 100% rename from content/blog/article.html rename to content/blog/2013/article.html diff --git a/content/blog/comments.html b/content/blog/2020/comments.html similarity index 100% rename from content/blog/comments.html rename to content/blog/2020/comments.html diff --git a/content/blog/wp2hugo.html b/content/blog/2021/wp2hugo.html similarity index 100% rename from content/blog/wp2hugo.html rename to content/blog/2021/wp2hugo.html diff --git a/layouts/_partials/menu/tree.html b/layouts/_partials/menu/tree.html new file mode 100644 index 00000000..a8d39bd1 --- /dev/null +++ b/layouts/_partials/menu/tree.html @@ -0,0 +1,77 @@ +{{- $page := .page }} +{{- $menuID := .menuID }} + + diff --git a/layouts/blog/year.html b/layouts/blog/year.html new file mode 100644 index 00000000..f0eb00da --- /dev/null +++ b/layouts/blog/year.html @@ -0,0 +1,105 @@ +{{- define "title" }} +

+ {{ .Title }} + {{- if (.Param "ShowRssButtonInSectionTermList") }} + {{- $rss := (.OutputFormats.Get "rss") }} + {{- if (eq .Kind `page`) }} + {{- $rss = (.Parent.OutputFormats.Get "rss") }} + {{- end }} + {{- with $rss }} + + + + + + + + {{- end }} + {{- end }} +

+ {{- if .Description }} +
+ {{ .Description }} +
+ {{- end }} +{{- end }}{{/* end title */}} + +{{- define "main" }} +{{- range .Pages.GroupByPublishDate "2006" }} +{{- if ne .Key "0001" }} +
+ {{- $year := replace .Key "0001" "" }} +

+ + {{- $year -}} + +

+ {{- range .Pages.GroupByDate "January" }} +
+
+ {{- range .Pages }} + {{- if eq .Kind "page" }} +
+

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

+
+ {{- partial "post_meta.html" . -}} +
+
+ {{- end }} + {{- end }} +
+
+ {{- end }} +
+{{- end }} +{{- end }} +{{- end }}{{/* end main */}} + +{{- define "menu" }} +{{- $page := . }} + +{{- end }}{{/* end menu */}} -- 2.39.5