From 8fce40f91d19f774d2ebb63e117f2667b19bd5e6 Mon Sep 17 00:00:00 2001 From: jtbx Date: Thu, 30 Nov 2023 21:53:46 +0100 Subject: [PATCH] blog: Use page resources for header image --- themes/ccchh/layouts/partials/blog-header.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/themes/ccchh/layouts/partials/blog-header.html b/themes/ccchh/layouts/partials/blog-header.html index 7c27276..0a927b3 100644 --- a/themes/ccchh/layouts/partials/blog-header.html +++ b/themes/ccchh/layouts/partials/blog-header.html @@ -38,6 +38,9 @@ {{- end }} {{- end }} - {{ if isset .Params "header" }} {{ .Params.header.caption }} {{ end }} + {{- if isset .Params "header" }} + {{- $img := .Resources.GetMatch .Params.header.image }} + {{ .Params.header.caption }} + {{- end }} {{- end }}