From 93de6c6a9896e8a8d94716b77a2481f0a85dc2c6 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Tue, 10 Oct 2023 11:27:56 +0200 Subject: [PATCH] iimg shortcut: add missing class attribute --- layouts/shortcodes/iimg.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/iimg.html b/layouts/shortcodes/iimg.html index df5a9a6..6a4935f 100644 --- a/layouts/shortcodes/iimg.html +++ b/layouts/shortcodes/iimg.html @@ -21,7 +21,8 @@ {{- end -}} {{- if $refPage -}} {{ or $alt $refPage.Title }} + src="{{ $image.RelPermalink }}" alt="{{ or $alt $refPage.Title }}" + class="{{ $class }}"> {{- else -}} {{ $alt }} {{- end -}}