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
parentd99467dc2fc7ff846f5ec546d1205616334fc6c8 (diff)
title is a plural word in the index page of sections
-rw-r--r--.gitignore1
-rw-r--r--README.md5
-rw-r--r--layouts/partials/header.html2
3 files changed, 6 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 282f718..5c44039 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
*~
.DS_Store
.sass-cache
+exampleSite/themes/ \ No newline at end of file
diff --git a/README.md b/README.md
index 680baa9..cb4bbd4 100644
--- a/README.md
+++ b/README.md
@@ -88,8 +88,11 @@ hugo server -t vec
```
+## Design By
+
+Cedric Fung(@vecio)
+
## License
Open sourced under [MIT license](https://github.com/IvanChou/hugo-theme-vec/blob/master/LICENSE.md).
-
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}}