blog/layouts/partials/header.html

17 lines
613 B
HTML
Raw Normal View History

<header>
<h1>
<a href="/" class="arrow back">{{ .Site.Title }}</a>
{{ if (eq .Page.Kind "term") }}
<span class="name">/tags</span><!--
--><span class="slug">/{{ .Data.Term }}</span>
{{ else }}
<span class="name">/{{ cond (ne .Type "page") .Type .Params.base }}</span><!--
--><span class="slug">{{ with .Params.slug }}/{{ . }}{{ end }}</span>
{{ end }}
</h1>
<nav>
<a href="/posts" class="arrow">Posts</a>
<a href="/thoughts" class="arrow">Thoughts</a>
<a href="/about" class="arrow">About</a>
</nav>
</header>