From 44056311de363ffd66939ddbcaa3354c141185e4 Mon Sep 17 00:00:00 2001 From: danix Date: Sat, 11 Mar 2023 10:55:15 +0100 Subject: [PATCH] working on the header image. Still does't show images set in front matter. --- layouts/partials/head-addition.html | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/layouts/partials/head-addition.html b/layouts/partials/head-addition.html index 475d3b4..40ac3a0 100644 --- a/layouts/partials/head-addition.html +++ b/layouts/partials/head-addition.html @@ -2,11 +2,13 @@ * Add the featured image to the header if it's present in the Front Matter */}} {{ if .IsPage }} - {{ if isset .Params "featured_image" }} - + {{ with $.Params.featured_image }} + {{ $source := $.Params.featured_image }} + {{ $image := resources.Get $source }} + {{ end }} {{ end }} -- 2.20.1