Hotfix: Hugo v0.22 and nested sections

This commit is contained in:
Alexis Tacnet
2017-06-27 16:11:46 +02:00
parent e877d500a9
commit 8ef779e0fa

View File

@@ -19,7 +19,7 @@
{{ if ne (len (where .Site.RegularPages "Section" "blog")) 0 }} {{ if ne (len (where .Site.RegularPages "Section" "blog")) 0 }}
<a href="{{ .Site.BaseURL }}blog/"><li>Blog</li></a> <a href="{{ .Site.BaseURL }}blog/"><li>Blog</li></a>
{{ end }} {{ end }}
{{ range .Site.Sections }} {{ range $.Site.Home.Sections }}
{{ range first 1 (where .Pages "Section" "ne" "")}} {{ range first 1 (where .Pages "Section" "ne" "")}}
{{ if ne .Section "blog"}} {{ if ne .Section "blog"}}
<a href="{{ .Section | urlize | absURL }}"><li>{{ .Section }}</li></a> <a href="{{ .Section | urlize | absURL }}"><li>{{ .Section }}</li></a>