brainbaking/themes/brainbaking-minimal/layouts/partials/single-header.html

49 lines
1.9 KiB
HTML
Raw Normal View History

<header>
2020-05-27 21:20:01 +02:00
{{ if .Title }}
2022-10-28 10:09:50 +02:00
{{ if (not .Params.disableComments) }}
2022-10-22 16:06:25 +02:00
<a href="/">
<svg class="logo"><title>Brain Baking home</title><use xlink:href='#logo'></use></svg>
2022-10-22 16:06:25 +02:00
</a>
2022-10-28 10:09:50 +02:00
{{ end }}
2021-03-12 18:48:49 +01:00
<h1 class="p-name" id="header">
2020-05-27 21:20:01 +02:00
{{ with .Params.icontag }}
2021-03-12 18:48:49 +01:00
<svg class='icon'><title>page type</title><use xlink:href='#{{ . }}'></use></svg>
2020-05-27 20:35:46 +02:00
{{ end }}
{{ .Title }}
</h1>
2021-03-12 18:48:49 +01:00
{{ end }}
2020-06-29 17:35:06 +02:00
{{ if isset .Params "date" }}
{{ if isset .Params "date" }}
<svg class='icon icon-text' width='24' height='24'>
<title>published icon</title>
<use xlink:href='#cal1'></use>
</svg>
<time datetime='{{ .Date.Format "2006-01-02" }}' class="dt-published">
<a class="u-url u-uid" href="{{ .RelPermalink }}">
{{ .Date.Format (.Site.Params.dateFormat | default "2 January 2006") }}
</a>
</time>
{{ end }}
{{ if isset .Params "categories" }}
&nbsp;|&nbsp;
<span title="Categories">
<svg class='icon icon-text' width='24' height='24'>
<title>category icon</title>
<use xlink:href='#folder'></use>
</svg>
{{ range .Params.categories }}
<a class="p-category" href="/categories/{{ . }}">{{ . }}</a>
{{ end }}
</span>
{{ end }}
{{ if (and (isset .Params "context") (not (eq .Params.context ""))) }}
&nbsp;|&nbsp;
<svg class='icon icon-text' width='24' height='24'>
<use xlink:href='#discuss'></use>
</svg>
<a href="{{ .Params.context }}" class="u-in-reply-to">In reply to</a>{{ with .Params.rsvp }}&nbsp;(RSVP: <span class="p-rsvp">{{ . }}</span>){{ end }}<br/>
{{ end }}
{{ end }}
</header>