From f28a9ba7e98f2ea87bbd06c4e65f37f7ab7b2666 Mon Sep 17 00:00:00 2001 From: Alexander Avery Date: Wed, 28 May 2025 15:11:39 -0400 Subject: [PATCH] fix image.html shortcode to use image.html partial --- layouts/shortcodes/image.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/image.html b/layouts/shortcodes/image.html index e35221d..b01a098 100644 --- a/layouts/shortcodes/image.html +++ b/layouts/shortcodes/image.html @@ -1 +1,7 @@ -

example image

+{{ $image := .Page.Resources.GetMatch (.Get "src") }} +{{ partial "image.html" + (dict + "image" $image + "alt" (.Get "alt") + "sizes" (slice 320 480 600) + "classes" (slice "fill-wh")) }} \ No newline at end of file