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

59 lines
1.9 KiB
HTML
Raw Normal View History

<header>
2020-05-27 20:35:46 +02:00
2020-05-27 21:20:01 +02:00
{{ if .Title }}
<h1>
2020-05-27 21:20:01 +02:00
{{ with .Params.icontag }}
2020-05-29 17:39:33 +02:00
<svg class='icon'><use xlink:href='#{{ . }}'></use></svg>
2020-05-27 20:35:46 +02:00
{{ end }}
{{ .Title }}
</h1>
2020-05-27 20:35:46 +02:00
{{ end }}
2020-05-30 17:41:38 +02:00
{{ if isset .Params "subtitle" }}
<h2>{{ .Params.subtitle }}</h2>
<h3>
{{ if isset .Params "date" }}
<time datetime='{{ .Date.Format "2006-01-02" }}'>
<svg class='icon icon-text' width='24' height='24'>
<use xlink:href='#cal1'></use>
</svg>
{{ .Date.Format (.Site.Params.dateFormat | default "2 January 2006") }}
</time>
{{ end }}
{{ if isset .Params "categories" }}
&nbsp;|&nbsp;
<span title="Categories">
<svg class='icon icon-text' width='24' height='24'>
<use xlink:href='#folder'></use>
</svg>
{{ range .Params.categories }}
<a href="/categories/{{ . }}">{{ . }}</a>
{{ end }}
</span>
{{ end }}
{{ if (not .Params.disableComments) }}
&nbsp;|&nbsp;
<span title="Comments">
<svg class='icon icon-text' width='24' height='24'>
<use xlink:href='#discuss'></use>
</svg><a href="{{ .Permalink }}#commento"></a>
2020-05-27 21:20:01 +02:00
</span>
{{ end }}
</h3>
2020-05-27 21:20:01 +02:00
{{ end }}
2020-05-27 20:35:46 +02:00
2020-05-27 21:20:01 +02:00
{{ if isset $.Params "tags" }}
<svg class='icon icon-text' width='24' height='24'>
<use xlink:href='#tag'></use>
</svg>
2020-05-27 21:20:01 +02:00
{{ end }}
<span class='list-tags'>
{{ range .Params.tags }}
<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}"><kbd class="item-tag">{{ . }}</kbd></a>
{{ end }}
</span>
2020-05-27 20:35:46 +02:00
</header>