From: danix Date: Sun, 12 Mar 2023 10:11:43 +0000 (+0100) Subject: fixed issues with images not showing up in header on single articles. Gallery and... X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=3adfd28c5a6e567c53b790ca0ab437ccede67b6f;p=theme-danix.xyz.git fixed issues with images not showing up in header on single articles. Gallery and image display needs fixing. --- 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