From: Kai Moritz Date: Sat, 20 Dec 2025 14:23:44 +0000 (+0100) Subject: Spezial-Menü für Blog-Unterseiten auch für das Template `blog/page` -- MOVE X-Git-Tag: frontend--hugo--rebase--2025-12-21--19-20~5 X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=c449541960d0d73a3dfb89335aeec2e6443d68dc;p=website Spezial-Menü für Blog-Unterseiten auch für das Template `blog/page` -- MOVE --- diff --git a/layouts/_partials/menu.html b/layouts/_partials/menu.html deleted file mode 100644 index a82d3519..00000000 --- a/layouts/_partials/menu.html +++ /dev/null @@ -1,24 +0,0 @@ -{{- $page := .page }} -{{- $menuID := .menuID }} - - diff --git a/layouts/_partials/menu/blog.html b/layouts/_partials/menu/blog.html new file mode 100644 index 00000000..185a7e8a --- /dev/null +++ b/layouts/_partials/menu/blog.html @@ -0,0 +1,94 @@ +{{- 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 }} +
+

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

+
+ {{- partial "post_meta.html" . -}} +
+
+{{- end }} +{{- end }}{{/* end main */}} + +{{- define "menu" }} +{{- $page := . }} + +{{- end }}{{/* end menu */}} diff --git a/layouts/_partials/menu/default.html b/layouts/_partials/menu/default.html new file mode 100644 index 00000000..a82d3519 --- /dev/null +++ b/layouts/_partials/menu/default.html @@ -0,0 +1,24 @@ +{{- $page := .page }} +{{- $menuID := .menuID }} + +