2026-02-19 17:45:09 +01:00
|
|
|
{{- $IsList := .IsList -}}
|
|
|
|
|
{{- $Page := .Page -}}
|
2020-08-24 19:27:51 +02:00
|
|
|
<header class="article-header">
|
2026-02-19 17:45:09 +01:00
|
|
|
{{- $image := partial "helper/image" (dict "Image" $Page.Params.image "Resources" $Page.Resources) -}}
|
2026-01-25 23:29:41 +01:00
|
|
|
{{ if $image }}
|
|
|
|
|
<div class="article-image">
|
2026-02-19 17:45:09 +01:00
|
|
|
<a href="{{ $Page.RelPermalink }}">
|
2026-01-25 23:29:41 +01:00
|
|
|
<img src="{{ $image.Permalink }}" width="{{ $image.Width }}" height="{{ $image.Height }}" loading="lazy"
|
2026-02-19 17:45:09 +01:00
|
|
|
alt="Featured image of post {{ $Page.Title }}" />
|
2026-01-25 23:29:41 +01:00
|
|
|
</a>
|
|
|
|
|
</div>
|
2020-08-24 19:27:51 +02:00
|
|
|
{{ end }}
|
|
|
|
|
|
2026-02-19 17:45:09 +01:00
|
|
|
{{ partial "article/components/details" (dict "Page" $Page "IsList" $IsList) }}
|
2020-08-24 19:27:51 +02:00
|
|
|
</header>
|