From f65156ab05248f7b498f1c847ddce389544d5973 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 22 Nov 2025 12:20:03 +0100 Subject: [PATCH] WIP:thymeleaf --- .../thymeleaf/layouts/_partials/header.html | 29 ++++++++++++++++++- hugo/themes/thymeleaf/layouts/baseof.html | 2 +- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/hugo/themes/thymeleaf/layouts/_partials/header.html b/hugo/themes/thymeleaf/layouts/_partials/header.html index 7980a00e..46ee169a 100644 --- a/hugo/themes/thymeleaf/layouts/_partials/header.html +++ b/hugo/themes/thymeleaf/layouts/_partials/header.html @@ -1,2 +1,29 @@ -

{{ site.Title }}

+

{{ site.Title }}

+

URI

+ +

Path

+

+

    +
  1. Hibernate Maven Plugin
  2. + {{- $url := replace .Parent.Permalink (printf "%s" site.Home.Permalink) "" }} + {{- $lang_url := strings.TrimPrefix (printf "%s/" .Lang) $url -}} + +
  3. {{ i18n "home" | default "Blog" }}
  4. + {{- $scratch := newScratch }} + {{- range $index, $element := split $lang_url "/" }} + + {{- $scratch.Add "path" (printf "%s/" $element )}} + {{- $bc_pg := site.GetPage ($scratch.Get "path") -}} + + {{- if (and ($bc_pg) (gt (len . ) 0))}} +
  5. {{ $bc_pg.Name }}
  6. + {{- end }} + + {{- end -}} +
+

{{ partial "menu.html" (dict "menuID" "main" "page" .) }} diff --git a/hugo/themes/thymeleaf/layouts/baseof.html b/hugo/themes/thymeleaf/layouts/baseof.html index 39dcbec6..5ed59902 100644 --- a/hugo/themes/thymeleaf/layouts/baseof.html +++ b/hugo/themes/thymeleaf/layouts/baseof.html @@ -1,5 +1,5 @@ - + {{ partial "head.html" . }} -- 2.39.5