smol/layouts/partials/header.html

16 lines
517 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 (len .Site.Menus.main) $i }} . {{ end }}
{{ end }}
{{ end }}
</nav>
</p>
</header>