From 9db0c696dbeb43807c6490d5e0ca6a5582ec722d Mon Sep 17 00:00:00 2001 From: Max Mehl Date: Thu, 19 Feb 2026 23:06:12 +0100 Subject: [PATCH] feat: header image contains alt and title tag --- .../layouts/partials/blog/headerimage.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/themes/hugo-sustain/layouts/partials/blog/headerimage.html b/themes/hugo-sustain/layouts/partials/blog/headerimage.html index eb20855..03fa041 100644 --- a/themes/hugo-sustain/layouts/partials/blog/headerimage.html +++ b/themes/hugo-sustain/layouts/partials/blog/headerimage.html @@ -15,11 +15,14 @@ {{- $filter := .filter }} {{- if not $image }} {{- warnf "Header image '%s' not found for page %s" .src $page.RelPermalink }} - {{- end }} - {{- with $image }} + {{- else }} {{- $image = partial "image-processing" (dict "image" $image "processes" $processes "filter" $filter) -}} - + {{ . }} + {{- with .text }}

{{ . | markdownify }}

{{ end }} {{- end }} - {{- with .text }}

{{ . | markdownify }}

{{ end }} {{- end }}