diff options
author | zwbetz <zwbetz@gmail.com> | 2019-12-11 06:29:11 +0300 |
---|---|---|
committer | zwbetz <zwbetz@gmail.com> | 2019-12-11 06:29:11 +0300 |
commit | 92eaa26a8e76edb065de4e01619d1c30e9bb1fe0 (patch) | |
tree | 42e4aa6188157008c7222a5c1c0dcc980ba95e15 | |
parent | 85cd240a672d84d1bb8c4ad0a2d58e5fe4706681 (diff) | |
parent | 81948de2a4eb059526963087cf5efc65c75532a2 (diff) |
Merge branch 'master' of github.com:zwbetz-gh/vanilla-bootstrap-hugo-theme
-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> |