yiichou / hugo-theme-vec

Vec is a minimal, clean and beautiful theme for Hugo.
MIT License
35 stars 24 forks source link

Header styling for post link does not work #7

Closed ghost closed 7 years ago

ghost commented 7 years ago

In the header partial

<li class="pull-left {{ if eq $name $title }}current{{ else if eq $section $name }}current{{ end }}">

works to give the "current" class to the FAQ and contact part, but not the post link. As seen on the demo site when on the post listing page "~/post" does not change to a brighter color.

ghost commented 7 years ago

Figured it out I think. Everything works correctly if you create a _index.md file in the post section and copy layouts/_default/list.html to layouts/_default/section.html

yiichou commented 7 years ago

YES! That's a BUG. Thanks for your report. I have fixed it in another way. 2d393dbad499954a398e970e4c21728f3395d483