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

@ -30,7 +30,8 @@
<a class="nav-link{{ if or
($.Page.IsMenuCurrent "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 }}">
{{/*{{ if .Pre }}
{{ $icon := printf "<i data-feather=\"%s\"></i> " .Pre | safeHTML }}

View File

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