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

github.com/progrhyme/hugo-theme-bootie-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkey-amb <yasutake.kiyoshi@gmail.com>2017-01-11 23:34:38 +0300
committerkey-amb <yasutake.kiyoshi@gmail.com>2017-01-11 23:34:38 +0300
commitcdc869c0d4de39bdb684a8230052970ee56f780b (patch)
tree20ca9328522b7add667589ec93d90c07ee573880
parentae1f1c2075514c2a97f235c7464e25588f9381db (diff)
Fix - Don't append tailing "/" to match $itemUrl with $menu.link
-rw-r--r--layouts/partials/header.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index f101804..10a2f18 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -36,7 +36,7 @@
{{ $url := .Permalink }}
{{ with .Site.Params.mainMenu }}
{{ range $menu := . }}
- {{ $itemUrl := printf "%s/%s/" $baseUrl $menu.link }}
+ {{ $itemUrl := printf "%s/%s" $baseUrl $menu.link }}
<li {{ if eq $url $itemUrl }}class="active"{{ end }}><a href="{{ $baseUrl }}/{{ $menu.link }}">{{ $menu.name }}</a></li>
{{ end }}
{{ end }}