Commit cdc869c0 authored by key-amb's avatar key-amb
Browse files

Fix - Don't append tailing "/" to match $itemUrl with $menu.link

parent ae1f1c20
......@@ -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 }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment