From 605e251a32f3e9a88f4c2b9bb770c2366123f943 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Tue, 15 Feb 2022 08:04:34 +0100 Subject: [PATCH] add class parameter to iimg shortcode --- 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 c714d8b..63b1139 100644 --- a/layouts/shortcodes/iimg.html +++ b/layouts/shortcodes/iimg.html @@ -3,6 +3,7 @@ {{- $ref := .Get "ref" -}} {{- $scale := .Get "scale" -}} {{- $alt := or (.Get "alt") (.Get "title") -}} + {{- $class := .Get "class" -}} {{- $refImg := "" -}} {{- $refPage := "" -}} {{- if $ref -}} @@ -22,6 +23,6 @@ {{ or $alt $refPage.Title }} {{- else -}} - {{ $alt }} + {{ $alt }} {{- end -}}

\ No newline at end of file