smol/layouts/partials/header.html

16 lines
526 B
HTML

<header>
{{ strings.Repeat ( .Site.Title | len | add 4 ) "=" }}<br>
= <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> =<br>
{{ strings.Repeat ( .Site.Title | len | add 4 ) "=" }}
<div style="float: right;">{{ .Site.Params.subtitle }}</div><br>
<p>
<nav>
<a href="/"><b>Home</b></a> .
{{ with .Site.Menus.main }}
{{ range $i, $e := . }}
<a href="{{ $e.URL | relURL }}"><b>{{ $e.Name }}</b></a>{{ if ne (sub (len $.Site.Menus.main) 1) $i }} . {{ end }}
{{ end }}
{{ end }}
</nav>
</p>
</header>