From 3adfd28c5a6e567c53b790ca0ab437ccede67b6f Mon Sep 17 00:00:00 2001 From: danix Date: Sun, 12 Mar 2023 11:11:43 +0100 Subject: [PATCH] fixed issues with images not showing up in header on single articles. Gallery and image display needs fixing. --- layouts/partials/head-addition.html | 12 +++++++----- layouts/shortcodes/{gallery-img.html => img.html} | 0 2 files changed, 7 insertions(+), 5 deletions(-) rename layouts/shortcodes/{gallery-img.html => img.html} (100%) diff --git a/layouts/partials/head-addition.html b/layouts/partials/head-addition.html index 40ac3a0..42eff42 100644 --- a/layouts/partials/head-addition.html +++ b/layouts/partials/head-addition.html @@ -3,12 +3,14 @@ */}} {{ if .IsPage }} {{ with $.Params.featured_image }} - {{ $source := $.Params.featured_image }} - {{ $image := resources.Get $source }} - + + {{ else }} + {{ warnf "featured image not found: %s" . }} + {{ end }} {{ end }} {{ end }} diff --git a/layouts/shortcodes/gallery-img.html b/layouts/shortcodes/img.html similarity index 100% rename from layouts/shortcodes/gallery-img.html rename to layouts/shortcodes/img.html -- 2.20.1