Enable menus in new taxonomy pages

This commit is contained in:
Christian Wolf 2024-01-14 09:47:56 +01:00
parent ffb4353273
commit c63dac6e7f
2 changed files with 3 additions and 1 deletions

View File

@ -31,6 +31,7 @@
($.Page.IsMenuCurrent "main" .) ($.Page.IsMenuCurrent "main" .)
($.Page.HasMenuCurrent "main" .) ($.Page.HasMenuCurrent "main" .)
(and (eq $.Page.Type "news") (eq .Identifier "aktuell") ) (and (eq $.Page.Type "news") (eq .Identifier "aktuell") )
(and (eq $.Page.Type "turniermeldung") (eq .Identifier "aktuell") )
}} active{{ end }}" href="{{ .URL }}"> }} active{{ end }}" href="{{ .URL }}">
{{/*{{ if .Pre }} {{/*{{ if .Pre }}
{{ $icon := printf "<i data-feather=\"%s\"></i> " .Pre | safeHTML }} {{ $icon := printf "<i data-feather=\"%s\"></i> " .Pre | safeHTML }}

View File

@ -4,6 +4,7 @@
($currentPage.IsMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .)
($currentPage.HasMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .)
(and (eq $currentPage.Type "news") (eq .Identifier "aktuell") ) (and (eq $currentPage.Type "news") (eq .Identifier "aktuell") )
(and (eq $currentPage.Type "turniermeldung") (eq .Identifier "aktuell") )
}} }}
{{ if .HasChildren }} {{ if .HasChildren }}
{{ range .Children }} {{ range .Children }}