2022-05-08 16:11:05 -04:00
|
|
|
<header class="header-top">
|
2023-01-03 21:00:27 -05:00
|
|
|
<div class="header-flex block-center">
|
2022-05-08 16:11:05 -04:00
|
|
|
|
|
|
|
{{ $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 }}">
|
2023-01-03 01:36:55 -05:00
|
|
|
~/{{ $headerTitle }}
|
2022-05-08 16:11:05 -04:00
|
|
|
</a>
|
|
|
|
{{ else }}
|
2023-01-03 01:36:55 -05:00
|
|
|
~/{{ $headerTitle }}
|
2022-05-08 16:11:05 -04:00
|
|
|
{{ end }}
|
|
|
|
</h1>
|
|
|
|
{{ end }}
|
|
|
|
{{ else }}
|
2023-01-03 01:36:55 -05:00
|
|
|
<h1 class="title">~/{{ .Title }}</h1>
|
2022-05-08 16:11:05 -04:00
|
|
|
{{ 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-05-21 00:32:46 -04:00
|
|
|
{{ $profile_image := resources.Get (printf "img/%s" .Site.Params.avatar) }}
|
2022-11-22 23:25:30 -05:00
|
|
|
{{ $profile_width := 75 }}
|
2023-09-26 16:30:27 -04:00
|
|
|
{{ $profile_image := $profile_image.Resize (printf "%dx webp q75" $profile_width) }}
|
|
|
|
<img class="avatarMask u-photo" width="{{ $profile_width }}" height="{{ $profile_width }}" src="{{ $profile_image.RelPermalink }}" alt="Photo of {{ .Site.Params.Author }}">
|
2022-05-08 16:11:05 -04: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 03:18:03 -04:00
|
|
|
</div>
|
2022-05-08 16:11:05 -04:00
|
|
|
|
|
|
|
|
|
|
|
</div>
|
2019-03-23 03:18:03 -04:00
|
|
|
</header>
|