forked from tsc-vfl/hugo-page
Enable menus in new taxonomy pages
This commit is contained in:
parent
ffb4353273
commit
c63dac6e7f
@ -30,7 +30,8 @@
|
|||||||
<a class="nav-link{{ if or
|
<a class="nav-link{{ if or
|
||||||
($.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 }}
|
||||||
|
@ -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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user