From 948746e617cfb41e2cef326f02e6c9bff53aa320 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 19 Dec 2025 10:12:06 +0100 Subject: [PATCH] =?utf8?q?Spezial-Men=C3=BC=20f=C3=BCr=20das=20`section`-T?= =?utf8?q?emplates=20von=20`/blog/`=20eingef=C3=BChrt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * 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. --- content/blog/article.html | 9 ++++++- content/blog/comments.html | 8 ++++++- layouts/baseof.html | 2 +- layouts/blog/section.html | 49 +++++++++++++++++++++++++++++++------- 4 files changed, 56 insertions(+), 12 deletions(-) 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 */}} -- 2.39.5