diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 37496904..1eb470c6 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -47,16 +47,14 @@
{{ $text := .Text }} - {{ with $imgResource }} - {{ if eq $imgResource.MediaType.SubType "svg" }} -
- {{ $text }} -
- {{ else }} -
- {{ $text }} -
- {{ end }} + {{ if and $imgResource (ne $imgResource.MediaType.SubType "svg") }} +
+ {{ $text }} +
+ {{ else }} +
+ {{ $text }} +
{{ end }} {{ with .Title }} @@ -65,3 +63,4 @@ {{ end }}
+