Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/vanilla-bootstrap-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwbetz <zwbetz@gmail.com>2019-12-11 06:29:11 +0300
committerzwbetz <zwbetz@gmail.com>2019-12-11 06:29:11 +0300
commit92eaa26a8e76edb065de4e01619d1c30e9bb1fe0 (patch)
tree42e4aa6188157008c7222a5c1c0dcc980ba95e15
parent85cd240a672d84d1bb8c4ad0a2d58e5fe4706681 (diff)
parent81948de2a4eb059526963087cf5efc65c75532a2 (diff)
Merge branch 'master' of github.com:zwbetz-gh/vanilla-bootstrap-hugo-theme
-rw-r--r--layouts/partials/nav.html3
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>