mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 03:36:41 +02:00
43 lines
1.9 KiB
HTML
43 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .Site.LanguageCode }}">
|
|
|
|
{{ partial "head.html" . }}
|
|
|
|
<body>
|
|
|
|
{{ if (or (.Site.Params.small_banner_logo) (and (.IsPage) (not (.Site.Params.large_banner_logo)))) }}
|
|
<div class="header column">
|
|
{{ else }}
|
|
<div class="header header-home column">
|
|
{{ end }}
|
|
<div class="container">
|
|
{{ if (not (isset .Site.Params "logofile")) }}
|
|
<a href="https://github.com/mtn/cocoa-eh-hugo-theme/wiki/Configuration#logo">Logo HOWTO</a>
|
|
{{ else if ne .Site.Params.logofile "" }}
|
|
<a href="{{ .Site.BaseURL }}"><img class="logo" src="{{ .Site.Params.logofile | relURL }}" alt="logo"></a>
|
|
{{ end }}
|
|
<div class="content">
|
|
<a href="/"><div class="name"><h1>{{ .Site.Title }}</h1></div></a>
|
|
<nav>
|
|
<ul>
|
|
{{ if (and (ne (len (where .Site.RegularPages "Section" "blog")) 0) (not (in .Site.Params.exclude_headings "blog"))) }}
|
|
<li><a href="/blog/">Blog</a></li>
|
|
{{ end }}
|
|
{{ range $.Site.Home.Sections }}
|
|
{{ range first 1 (where .Pages "Section" "ne" "")}}
|
|
{{ if (and (ne .Section "blog") (not (in .Site.Params.exclude_headings (lower .Section))))}}
|
|
<li><a href="{{ .Section | urlize | relURL }}">{{ .Section }}</a></li>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ range where .Site.RegularPages "Section" ""}}
|
|
{{ if (and (and (ne .Title "License") (ne .Title "Home")) (not (in .Site.Params.exclude_headings (lower .Title))))}}
|
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|