diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index 469e4ad..9034afa 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -29,7 +29,7 @@ care about is 700*4=2800px. {{ $w2800 := $src.Resize (print "2800x webp " $hint ) }}
- {{ with .Get "link" }}{{ end }} + - {{ if .Get "link" }}{{ end }} + {{ if or (or (.Get "title") (.Get "caption")) (.Get "attr") }}
{{ if isset .Params "title" }}

{{ .Get "title" }}

{{ end }}