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

github.com/IvanChou/hugo-theme-vec.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIChou <me@ichou.cn>2017-02-12 19:18:27 +0300
committerIChou <me@ichou.cn>2017-02-12 19:21:39 +0300
commit2d393dbad499954a398e970e4c21728f3395d483 (patch)
treeb2e2f0d11723b7d63d01aab65034b3fb0a5771e9 /layouts
parentd99467dc2fc7ff846f5ec546d1205616334fc6c8 (diff)
title is a plural word in the index page of sections
Diffstat (limited to 'layouts')
-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 06afda0..2d79b28 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -8,7 +8,7 @@
</li>
{{ range .Site.Menus.main }}
{{ $name := lower .Name }}
- <li class="pull-left {{ if eq $name $title }}current{{ else if eq $section $name }}current{{ end }}">
+ <li class="pull-left {{ if eq $name $title }}current{{ else if eq $section $name }}current{{ else if eq $title (pluralize $name) }}current{{ end }}">
<a href="{{ .URL }}">~/{{ lower .Name }}</a>
</li>
{{end}}