diff options
Diffstat (limited to 'layouts/partials/nav.html')
-rw-r--r-- | layouts/partials/nav.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 675b466..53ceb21 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -6,6 +6,7 @@ {{ $active := "" }} {{ if eq $showActiveNav true }} {{ $isMenu := or ($currentPage.IsMenuCurrent "nav" .) ($currentPage.HasMenuCurrent "nav" .) }} + {{ $isMenu = or $isMenu (eq $currentPage.Params.identifier .Identifier) }} {{ $isMenu = or $isMenu (eq $currentPage.Title .Name) }} {{ $isMenu = or $isMenu (and (eq .Name "Blog") (eq $currentPage.Section "post")) }} {{ $isMenu = or $isMenu (and (eq .Name "Tags") (eq $currentPage.Section "tags")) }} @@ -18,4 +19,4 @@ <a class="nav-link {{ $active }}" href="{{ .URL }}">{{ $text }}</a> {{ end }} </nav> -</div>
\ No newline at end of file +</div> |