diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index 7fae19d..c43a3ec 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -1,12 +1,12 @@ {{ $src := .Get "src" }} {{ $origImage := .Page.Resources.GetMatch $src }} {{ if eq $origImage.MediaType.SubType "svg" }} - .Get "alt" + {{ .Get "alt" }} {{ else }} {{ $resizeAdd := .Get "resizeAdd" | default "" }} {{ $resize := printf "%s%s" (.Get "resize" | default "720x webp Lanczos ") $resizeAdd }} {{ $image := $origImage.Resize $resize }} - .Get "alt" + {{ .Get "alt" }} {{ end }}