2022-05-08 20:11:05 +00:00
|
|
|
<header class="header-top">
|
|
|
|
<div class="header-flex">
|
|
|
|
|
|
|
|
{{ $headerTitle := .Scratch.Get "customTitleHeader" }}
|
|
|
|
{{ $headerLink := .Scratch.Get "customTitleHeaderLink" }}
|
|
|
|
|
|
|
|
{{ if (.Scratch.Get "customTitleHeaderSet") }}
|
|
|
|
{{ if eq $headerTitle ""}}
|
|
|
|
<div></div>
|
|
|
|
{{ else }}
|
|
|
|
<h1 class='title'>
|
|
|
|
{{ if $headerLink }}
|
|
|
|
<a href="{{ $headerLink }}">
|
|
|
|
{{ $headerTitle }}
|
|
|
|
</a>
|
|
|
|
{{ else }}
|
|
|
|
{{ $headerTitle }}
|
|
|
|
{{ end }}
|
|
|
|
</h1>
|
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
|
|
|
<h1 class="title">{{ .Title }}</h1>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
<div class="h-card p-author">
|
|
|
|
<h2 class="p-name"><a class="author u-url" rel="me" href="{{ .Site.BaseURL }}">{{ .Site.Params.Author }}</a></h2>
|
2022-02-15 06:13:11 +00:00
|
|
|
<img class="avatarMask u-photo" src="{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}" alt="{{ .Site.Params.avatarDescription }}">
|
2022-05-08 20:11:05 +00:00
|
|
|
<div style="display: none">
|
|
|
|
<!-- email / description (for h-card) -->
|
|
|
|
<a class="u-email" href="mailto://{{ .Site.Params.email }}"></a>
|
|
|
|
<p class="p-note">
|
|
|
|
{{ .Site.Params.description | safeHTML }}
|
|
|
|
</p>
|
|
|
|
</div>
|
2019-03-23 07:18:03 +00:00
|
|
|
</div>
|
2022-05-08 20:11:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
</div>
|
2019-03-23 07:18:03 +00:00
|
|
|
</header>
|