From: Kai Moritz Date: Fri, 19 Dec 2025 09:12:06 +0000 (+0100) Subject: Spezial-Menü für das `section`-Templates von `/blog/` eingeführt X-Git-Tag: frontend--hugo--rebase--2025-12-21--18-30~9 X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=948746e617cfb41e2cef326f02e6c9bff53aa320;p=website Spezial-Menü für das `section`-Templates von `/blog/` eingeführt * Das Menü wird in `baseof` jetzt als überschreibbarer Block definiert. * Der `menu`-Block gibt das bishierige Menü als Default vor. * `blog/section` überschreibt das Menü mit einer Auflistung der Jahre, für die Blog-Artikel vorliegen. --- diff --git a/content/blog/article.html b/content/blog/article.html index e4c672f7..050c2d01 100644 --- a/content/blog/article.html +++ b/content/blog/article.html @@ -1,5 +1,12 @@ --- -title: "juplo - blog - Combining jetty-maven-plugin and wro4j-maven-plugin for Dynamic Reloading of LESS-Resources" +categories: + - jetty + - less + - maven + - wro4j +date: "2013-12-06T10:58:17+00:00" +title: Combining jetty-maven-plugin and wro4j-maven-plugin for Dynamic Reloading of LESS-Resources +url: /combining-jetty-maven-plugin-and-wro4j-maven-plugin-for-dynamic-reloading-of-less-resources/ ---
diff --git a/content/blog/comments.html b/content/blog/comments.html index 2fa57191..e150735f 100644 --- a/content/blog/comments.html +++ b/content/blog/comments.html @@ -1,5 +1,11 @@ --- -title: "juplo - blog - hibernate4-maven-plugin" +categories: + - hibernate + - java + - maven +date: "2020-06-15T19:15:58+00:00" +title: hibernate4-maven-plugin +url: /hibernate4-maven-plugin-a-simple-plugin-for-generating-a-database-schema-from-hibernate-4-mapping-annotations/ ---
diff --git a/layouts/baseof.html b/layouts/baseof.html index 58611b42..41e9b012 100644 --- a/layouts/baseof.html +++ b/layouts/baseof.html @@ -17,7 +17,7 @@ {{- block "main" . }}{{ end }}
- {{- partial "menu.html" (dict "menuID" "main" "page" .) }} + {{- block "menu" . }}{{- partial "menu.html" (dict "menuID" "main" "page" .) }}{{ end }} {{- block "marginalcontent" . }}{{ end }}
diff --git a/layouts/blog/section.html b/layouts/blog/section.html index 46d76f64..f0eb00da 100644 --- a/layouts/blog/section.html +++ b/layouts/blog/section.html @@ -23,16 +23,10 @@ {{ .Description }} {{- end }} -{{- end }} +{{- end }}{{/* end title */}} {{- define "main" }} -{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} - -{{- if site.Params.ShowAllPagesInArchive }} -{{- $pages = site.RegularPages }} -{{- end }} - -{{- range $pages.GroupByPublishDate "2006" }} +{{- range .Pages.GroupByPublishDate "2006" }} {{- if ne .Key "0001" }}
{{- $year := replace .Key "0001" "" }} @@ -70,5 +64,42 @@
{{- end }} {{- end }} - {{- end }}{{/* end main */}} + +{{- define "menu" }} +{{- $page := . }} + +{{- end }}{{/* end menu */}}