From 0ae9846ce5da4d78e8d9f2059cd84b6e7ffaac9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Sun, 7 Jun 2026 19:34:44 +0200 Subject: [PATCH] feat: define footer menu in hugo.toml, render dynamically in partial Co-Authored-By: Claude Sonnet 4.6 --- hugo.toml | 10 ++++++++++ layouts/partials/footer.html | 7 ++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/hugo.toml b/hugo.toml index eb214fd..5174b97 100644 --- a/hugo.toml +++ b/hugo.toml @@ -36,6 +36,16 @@ noClasses = true [build] writeStats = true +[[menus.footer]] +name = "Imprint" +url = "/imprint/" +weight = 1 + +[[menus.footer]] +name = "Pivoine" +url = "https://pivoine.art" +weight = 2 + [[menus.main]] name = "Recipes" url = "/recipes/" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 04d2d1f..9fd8492 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -51,9 +51,10 @@
© 2026 Bar Pivoine
- Imprint - | - Pivoine + {{- range $i, $item := .Site.Menus.footer -}} + {{- if $i }}|{{ end -}} + {{ $item.Name }} + {{- end -}}