diff options
author | IChou <me@ichou.cn> | 2017-02-12 19:18:27 +0300 |
---|---|---|
committer | IChou <me@ichou.cn> | 2017-02-12 19:21:39 +0300 |
commit | 2d393dbad499954a398e970e4c21728f3395d483 (patch) | |
tree | b2e2f0d11723b7d63d01aab65034b3fb0a5771e9 /layouts | |
parent | d99467dc2fc7ff846f5ec546d1205616334fc6c8 (diff) |
title is a plural word in the index page of sections
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/header.html | 2 |
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}} |