mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 03:36:41 +02:00
Enumerate sections in the header to do links
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ if ne (len (where .Data.Pages "Title" "!=" $globalTitle)) 0}}
|
||||
<div class="page-heading">{{ .Title }}</div>
|
||||
<ul>
|
||||
{{ range .Data.Pages.ByPublishDate }}
|
||||
@@ -18,6 +19,7 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@@ -5,10 +5,10 @@
|
||||
|
||||
<body lang="{{ .Site.Params.lang }}">
|
||||
|
||||
{{ if .IsHome }}
|
||||
<section class="header header-home">
|
||||
{{ else }}
|
||||
{{ if .IsPage }}
|
||||
<section class="header">
|
||||
{{ else }}
|
||||
<section class="header header-home">
|
||||
{{ end }}
|
||||
<div class="container">
|
||||
<a href="{{ .Site.BaseURL }}"><img class="logo" src="{{ .Site.Params.logofile | absURL }}" /></a>
|
||||
@@ -16,9 +16,16 @@
|
||||
<a href="{{ .Site.BaseURL }}"><div class="name"><h1>{{ .Site.Title }}</h1></div></a>
|
||||
<nav>
|
||||
<ul>
|
||||
<a href="{{ .Site.BaseURL }}"><li>Blog</li></a>
|
||||
<a href="{{ .Site.BaseURL }}about/"><li>About</li></a>
|
||||
<a href="{{ .Site.BaseURL }}projects/"><li>Projects</li></a>
|
||||
{{ range .Site.Sections }}
|
||||
{{ range first 1 .Pages }}
|
||||
<a href="{{ .Section | urlize }}"><li>{{ .Section }}</li></a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ range where .Site.Pages "Section" ""}}
|
||||
{{ if ne .Title "Home"}}
|
||||
<a href="{{ .Permalink }}"><li>{{ .Title }}</li></a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user