22 lines
797 B
HTML
Raw Normal View History

2023-01-19 18:21:20 +01:00
{{ $currentPage := .Page }}
{{ range .Site.Menus.main }}
2024-01-04 15:57:23 +01:00
{{ if or
($currentPage.IsMenuCurrent "main" .)
($currentPage.HasMenuCurrent "main" .)
(and (eq $currentPage.Type "news") (eq .Identifier "aktuell") )
2024-01-14 09:47:56 +01:00
(and (eq $currentPage.Type "turniermeldung") (eq .Identifier "aktuell") )
2024-01-04 15:57:23 +01:00
}}
2023-01-19 18:21:20 +01:00
{{ if .HasChildren }}
{{ range .Children }}
{{ $submenu := "" }}
2023-01-21 18:07:36 +01:00
{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}
2023-01-19 18:21:20 +01:00
{{ $submenu = " active"}}
{{ end }}
<a href="{{ .URL }}" class="{{ $submenu }}">
{{ print .Name | safeHTML }}
</a>
{{ end }}
{{ end }}
{{ end }}
{{ end }}