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:
Diffstat (limited to 'layouts/partials/nav.html')
-rw-r--r--layouts/partials/nav.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 9ca3c7c..68deb99 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -1,8 +1,8 @@
<div id="nav-border" class="container">
<nav id="nav" class="nav justify-content-center">
- {{ $showActiveNav := .Site.Params.showActiveNav }}
+ {{ $showActiveNav := site.Params.showActiveNav }}
{{ $currentPage := . }}
- {{ range .Site.Menus.main }}
+ {{ range site.Menus.main }}
{{ $active := "" }}
{{ if eq $showActiveNav true }}
{{ $isMenu := or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}