2023-10-08 00:13:18 +02:00
|
|
|
{{- $page := .page -}}
|
2023-10-08 17:38:54 +02:00
|
|
|
{{- $level := (.level | default 1) -}}
|
|
|
|
{{- $headingLink := (.headingLink | default false) -}}
|
|
|
|
{{- $showTags := not (.reduced | default false) -}}
|
|
|
|
{{- $showAuthors := not (.reduced | default false) -}}
|
2023-10-08 00:13:18 +02:00
|
|
|
|
|
|
|
{{ with $page }}
|
2023-10-29 22:05:09 +01:00
|
|
|
<header class="blog-header">
|
2023-11-04 22:26:11 +01:00
|
|
|
{{- if $headingLink }}<a href="{{ .RelPermalink }}">{{ end }}
|
2023-10-08 17:38:54 +02:00
|
|
|
<h{{ $level }}>{{ .Title }}</h{{ $level }}>
|
|
|
|
{{- if $headingLink }}</a>{{ end }}
|
2023-10-08 00:13:18 +02:00
|
|
|
{{- with .Params.subtitle }}
|
|
|
|
<span class="subtitle">{{ . }}</span>
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
<div class="infos">
|
2023-10-08 17:38:54 +02:00
|
|
|
<span class="li-space"><i class="fa-solid fa-calendar-day"></i> {{ .Date | time.Format "Mon, 2006-01-02 15:04" }}</span>
|
2023-10-08 00:13:18 +02:00
|
|
|
{{- with .Params.location }}
|
|
|
|
<span class="li-space"><i class="fa-solid fa-location-dot"></i> {{ . }}</span>
|
|
|
|
{{- end }}
|
2023-10-08 17:38:54 +02:00
|
|
|
{{- if $showTags }}
|
2023-10-08 00:13:18 +02:00
|
|
|
{{- with .Page.GetTerms "tags" }}
|
|
|
|
<span class="li-space"><i class="fa-solid fa-tag"></i>
|
|
|
|
{{- range . }}
|
2023-11-04 22:26:11 +01:00
|
|
|
<span class="li-comma"><a href="{{ .RelPermalink }}">{{ .Title }}</a></span>
|
2023-10-08 00:13:18 +02:00
|
|
|
{{- end }}
|
|
|
|
</span>
|
|
|
|
{{- end }}
|
2023-10-08 17:38:54 +02:00
|
|
|
{{- end }}
|
|
|
|
{{- if $showAuthors }}
|
2023-10-08 00:13:18 +02:00
|
|
|
<br>
|
|
|
|
{{- with .Page.GetTerms "authors" }}
|
|
|
|
<span class="li-space"><i class="fa-regular fa-user"></i>
|
|
|
|
{{- range . }}
|
2023-11-04 22:26:11 +01:00
|
|
|
<span class="li-comma"><a href="{{ .RelPermalink }}">{{ .Title }}</a></span>
|
2023-10-08 00:13:18 +02:00
|
|
|
{{- end }}
|
|
|
|
</span>
|
|
|
|
{{- end }}
|
2023-10-08 17:38:54 +02:00
|
|
|
{{- end }}
|
2023-10-08 00:13:18 +02:00
|
|
|
</div>
|
2023-10-29 22:05:09 +01:00
|
|
|
{{ if isset .Params "header" }} <img class="container" src="{{ .Params.header.image }}" alt="{{ .Params.header.caption }}" /> {{ end }}
|
2023-10-08 00:13:18 +02:00
|
|
|
</header>
|
2023-10-27 00:08:07 +02:00
|
|
|
{{- end }}
|