mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 11:46:41 +02:00
Add the fact that the blog section is a must
This commit is contained in:
@@ -16,11 +16,14 @@
|
|||||||
<a href="{{ .Site.BaseURL }}"><div class="name"><h1>{{ .Site.Title }}</h1></div></a>
|
<a href="{{ .Site.BaseURL }}"><div class="name"><h1>{{ .Site.Title }}</h1></div></a>
|
||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<ul>
|
||||||
|
<a href="{{ .Site.BaseURL }}blog/"><li>Blog</li></a>
|
||||||
{{ range .Site.Sections }}
|
{{ range .Site.Sections }}
|
||||||
{{ range first 1 .Pages }}
|
{{ range first 1 (where .Pages "Section" "ne" "")}}
|
||||||
|
{{ if ne .Section "blog"}}
|
||||||
<a href="{{ .Section | urlize }}"><li>{{ .Section }}</li></a>
|
<a href="{{ .Section | urlize }}"><li>{{ .Section }}</li></a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
{{ range where .Site.Pages "Section" ""}}
|
{{ range where .Site.Pages "Section" ""}}
|
||||||
{{ if ne .Title "Home"}}
|
{{ if ne .Title "Home"}}
|
||||||
<a href="{{ .Permalink }}"><li>{{ .Title }}</li></a>
|
<a href="{{ .Permalink }}"><li>{{ .Title }}</li></a>
|
||||||
|
Reference in New Issue
Block a user