diff --git a/layouts/shortcodes/figures/image.html b/layouts/shortcodes/figures/image.html index 14fe93c..6d82f30 100644 --- a/layouts/shortcodes/figures/image.html +++ b/layouts/shortcodes/figures/image.html @@ -10,13 +10,15 @@ {{ errorf "Missing name or names parameter to figures/image" }} {{- end -}} +{{- $class := .Get "class" -}} + {{- if lt (len $imgs) 0 -}} {{ errorf "No images found for name(s) parameter" }} {{- end -}} {{- $shouldShowTitle := (.Get "shouldShowTitle") | default true -}} - + {{ range $img := $imgs -}} {{- $resizedImg := $img.Fit "1280x1280" -}}