diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 723c1dc2..96f30901 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -15,16 +15,24 @@ {{ end }} {{ with $resource }}
- {{ $altText }} + {{ if eq .MediaType.SubType "svg" }} + {{ $altText }} + {{ else }} + {{ $altText }} + {{ end }} {{ with $caption }}
{{ . | markdownify }}
{{ end }}
{{ else }}