fix header image of blog posts sometimes being clipped
All checks were successful
/ build (pull_request) Successful in 40s

This commit is contained in:
lilly 2026-05-23 15:10:43 +02:00
commit d94b6f74dd
Signed by: lilly
SSH key fingerprint: SHA256:y9T5GFw2A20WVklhetIxG1+kcg/Ce0shnQmbu1LQ37g
2 changed files with 16 additions and 9 deletions

View file

@ -46,8 +46,10 @@
{{- end }}
</div>
{{- if isset .Params "header" }}
{{- $img := .Resources.GetMatch .Params.header.image }}
<img class="container" src="{{ $img.RelPermalink }}" alt="{{ .Params.header.caption }}" />
{{- end }}
<div class="image-container">
{{- $img := .Resources.GetMatch .Params.header.image }}
<img src="{{ $img.RelPermalink }}" alt="{{ .Params.header.caption }}" />
{{- end }}
</div>
</header>
{{- end }}