mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 03:36:41 +02:00

Since not every user has a nice logo at hand I find it useful to have the option to not include a logo. By default cocoa-eh would still show a 'logo' hyperlink. I would at least try to make this theme work without any basefiles given (even thoug the basic cocoa theme is available)
41 lines
1.5 KiB
HTML
41 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .Site.LanguageCode }}">
|
|
|
|
{{ partial "head.html" . }}
|
|
|
|
<body>
|
|
|
|
{{ if or (.Site.Params.small_banner_logo) (.IsPage) }}
|
|
<div class="header column">
|
|
{{ else }}
|
|
<div class="header header-home column">
|
|
{{ end }}
|
|
<div class="container">
|
|
{{ if ne .Site.Params.logofile "" }}
|
|
<a href="{{ .Site.BaseURL }}"><img class="logo" src="{{ .Site.Params.logofile | absURL }}" alt="logo" /></a>
|
|
{{ end }}
|
|
<div class="content">
|
|
<a href="{{ .Site.BaseURL }}"><div class="name"><h1>{{ .Site.Title }}</h1></div></a>
|
|
<nav>
|
|
<ul>
|
|
{{ if ne (len (where .Site.RegularPages "Section" "blog")) 0 }}
|
|
<li><a href="{{ .Site.BaseURL }}blog/">Blog</a></li>
|
|
{{ end }}
|
|
{{ range $.Site.Home.Sections }}
|
|
{{ range first 1 (where .Pages "Section" "ne" "")}}
|
|
{{ if ne .Section "blog"}}
|
|
<li><a href="{{ .Section | urlize | absURL }}">{{ .Section }}</a></li>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ range where .Site.RegularPages "Section" ""}}
|
|
{{ if and (ne .Title "License") (ne .Title "Home")}}
|
|
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|