From f221c5774d31401d5eef12f3ad29b552209a1de8 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 27 Dec 2025 15:29:29 +0100 Subject: [PATCH] Taxonomien `Categories` und `Tags` als Untersektionen von `Blog` -- MOVE --- .../blog/{ => archive}/2013/_index.html | 0 .../blog/{ => archive}/2013/article.html | 0 .../blog/{ => archive}/2020/_index.html | 0 .../blog/{ => archive}/2020/comments.html | 0 .../blog/{ => archive}/2021/_index.html | 0 .../blog/{ => archive}/2021/wp2hugo.md | 0 layouts/blog/{ => archive}/page.html | 0 layouts/blog/archive/section.html | 36 +++++++++++++++++++ layouts/blog/{ => archive}/year.html | 0 layouts/categories/taxonomy.html | 36 +++++++++++++++++++ layouts/categories/term.html | 36 +++++++++++++++++++ layouts/tags/taxonomy.html | 36 +++++++++++++++++++ layouts/tags/term.html | 36 +++++++++++++++++++ 13 files changed, 180 insertions(+) rename exampleSite/content/blog/{ => archive}/2013/_index.html (100%) rename exampleSite/content/blog/{ => archive}/2013/article.html (100%) rename exampleSite/content/blog/{ => archive}/2020/_index.html (100%) rename exampleSite/content/blog/{ => archive}/2020/comments.html (100%) rename exampleSite/content/blog/{ => archive}/2021/_index.html (100%) rename exampleSite/content/blog/{ => archive}/2021/wp2hugo.md (100%) rename layouts/blog/{ => archive}/page.html (100%) create mode 100644 layouts/blog/archive/section.html rename layouts/blog/{ => archive}/year.html (100%) create mode 100644 layouts/categories/taxonomy.html create mode 100644 layouts/categories/term.html create mode 100644 layouts/tags/taxonomy.html create mode 100644 layouts/tags/term.html diff --git a/exampleSite/content/blog/2013/_index.html b/exampleSite/content/blog/archive/2013/_index.html similarity index 100% rename from exampleSite/content/blog/2013/_index.html rename to exampleSite/content/blog/archive/2013/_index.html diff --git a/exampleSite/content/blog/2013/article.html b/exampleSite/content/blog/archive/2013/article.html similarity index 100% rename from exampleSite/content/blog/2013/article.html rename to exampleSite/content/blog/archive/2013/article.html diff --git a/exampleSite/content/blog/2020/_index.html b/exampleSite/content/blog/archive/2020/_index.html similarity index 100% rename from exampleSite/content/blog/2020/_index.html rename to exampleSite/content/blog/archive/2020/_index.html diff --git a/exampleSite/content/blog/2020/comments.html b/exampleSite/content/blog/archive/2020/comments.html similarity index 100% rename from exampleSite/content/blog/2020/comments.html rename to exampleSite/content/blog/archive/2020/comments.html diff --git a/exampleSite/content/blog/2021/_index.html b/exampleSite/content/blog/archive/2021/_index.html similarity index 100% rename from exampleSite/content/blog/2021/_index.html rename to exampleSite/content/blog/archive/2021/_index.html diff --git a/exampleSite/content/blog/2021/wp2hugo.md b/exampleSite/content/blog/archive/2021/wp2hugo.md similarity index 100% rename from exampleSite/content/blog/2021/wp2hugo.md rename to exampleSite/content/blog/archive/2021/wp2hugo.md diff --git a/layouts/blog/page.html b/layouts/blog/archive/page.html similarity index 100% rename from layouts/blog/page.html rename to layouts/blog/archive/page.html diff --git a/layouts/blog/archive/section.html b/layouts/blog/archive/section.html new file mode 100644 index 00000000..b50e04ad --- /dev/null +++ b/layouts/blog/archive/section.html @@ -0,0 +1,36 @@ +{{- define "title" }} +

+ {{- with .OutputFormats.Get "rss" }} + + + + + + + Archive of all Blog-Articles + +

+ {{- end }} +{{- end }}{{/* end title */}} + +{{- define "content" }} +{{- range .RegularPagesRecursive }} +
+

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

+
+ {{- partial "post_meta.html" . -}} +
+
+{{- end }} +{{- end }}{{/* end main */}} diff --git a/layouts/blog/year.html b/layouts/blog/archive/year.html similarity index 100% rename from layouts/blog/year.html rename to layouts/blog/archive/year.html diff --git a/layouts/categories/taxonomy.html b/layouts/categories/taxonomy.html new file mode 100644 index 00000000..b50e04ad --- /dev/null +++ b/layouts/categories/taxonomy.html @@ -0,0 +1,36 @@ +{{- define "title" }} +

+ {{- with .OutputFormats.Get "rss" }} + + + + + + + Archive of all Blog-Articles + +

+ {{- end }} +{{- end }}{{/* end title */}} + +{{- define "content" }} +{{- range .RegularPagesRecursive }} +
+

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

+
+ {{- partial "post_meta.html" . -}} +
+
+{{- end }} +{{- end }}{{/* end main */}} diff --git a/layouts/categories/term.html b/layouts/categories/term.html new file mode 100644 index 00000000..b50e04ad --- /dev/null +++ b/layouts/categories/term.html @@ -0,0 +1,36 @@ +{{- define "title" }} +

+ {{- with .OutputFormats.Get "rss" }} + + + + + + + Archive of all Blog-Articles + +

+ {{- end }} +{{- end }}{{/* end title */}} + +{{- define "content" }} +{{- range .RegularPagesRecursive }} +
+

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

+
+ {{- partial "post_meta.html" . -}} +
+
+{{- end }} +{{- end }}{{/* end main */}} diff --git a/layouts/tags/taxonomy.html b/layouts/tags/taxonomy.html new file mode 100644 index 00000000..b50e04ad --- /dev/null +++ b/layouts/tags/taxonomy.html @@ -0,0 +1,36 @@ +{{- define "title" }} +

+ {{- with .OutputFormats.Get "rss" }} + + + + + + + Archive of all Blog-Articles + +

+ {{- end }} +{{- end }}{{/* end title */}} + +{{- define "content" }} +{{- range .RegularPagesRecursive }} +
+

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

+
+ {{- partial "post_meta.html" . -}} +
+
+{{- end }} +{{- end }}{{/* end main */}} diff --git a/layouts/tags/term.html b/layouts/tags/term.html new file mode 100644 index 00000000..b50e04ad --- /dev/null +++ b/layouts/tags/term.html @@ -0,0 +1,36 @@ +{{- define "title" }} +

+ {{- with .OutputFormats.Get "rss" }} + + + + + + + Archive of all Blog-Articles + +

+ {{- end }} +{{- end }}{{/* end title */}} + +{{- define "content" }} +{{- range .RegularPagesRecursive }} +
+

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

+
+ {{- partial "post_meta.html" . -}} +
+
+{{- end }} +{{- end }}{{/* end main */}} -- 2.39.5