From dc4faff23787dce12fa2252933d1039993aaea37 Mon Sep 17 00:00:00 2001 From: Richard Dern Date: Sat, 5 Apr 2025 21:26:38 +0200 Subject: [PATCH] Allow menu items not to have a .PageRef --- themes/default/assets/css/footer.css | 3 ++- themes/default/layouts/partials/footer/nav.html | 14 +++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/themes/default/assets/css/footer.css b/themes/default/assets/css/footer.css index dee73a4d..d40ac0e1 100644 --- a/themes/default/assets/css/footer.css +++ b/themes/default/assets/css/footer.css @@ -76,7 +76,8 @@ body>footer { } } - a { + a, + span { display: block; padding: 0.5rem 1rem; border-radius: 4px; diff --git a/themes/default/layouts/partials/footer/nav.html b/themes/default/layouts/partials/footer/nav.html index 5fd39919..4e70beb0 100644 --- a/themes/default/layouts/partials/footer/nav.html +++ b/themes/default/layouts/partials/footer/nav.html @@ -3,18 +3,30 @@ {{ range site.Menus.main -}} {{- if .HasChildren -}}
  • + {{ if .PageRef }} {{ .Name }} + {{ else }} + {{ .Name }} + {{ end }}
  • {{- else -}}
  • + {{ if .PageRef }} {{ .Name }} + {{ else }} + {{ .Name }} + {{ end }}
  • {{- end }} {{ end }}