diff --git a/layouts/shortcodes/imgthumb.html b/layouts/shortcodes/imgthumb.html index 40aedee..c9ca77e 100644 --- a/layouts/shortcodes/imgthumb.html +++ b/layouts/shortcodes/imgthumb.html @@ -5,21 +5,43 @@ {{ $imagethumbnail := $image.Resize $options }} - + + {{ with .Get + + + + {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}} +
{{ with (.Get "title") -}}

{{ . }}

{{- end -}} - {{- if or (.Get "caption") (.Get "attr") -}}

+ {{- if or (.Get "caption") (.Get "attr") -}}

{{- .Get "caption" | markdownify -}} {{- with .Get "attrlink" }} @@ -30,11 +52,4 @@

{{- end }} - - {{ with .Get -