commit 5aac274434dead35df89c6a7be3933075e0b038b
parent 2b14b3d4e5eab53aa45647490bb797b642a82a59
Author: Cézar Augusto <32869222+cizordj@users.noreply.github.com>
Date:   Mon,  6 Mar 2023 20:21:08 -0300

Update the image shortcode

- Add both width and height attributes
Diffstat:
Mlayouts/shortcodes/image.html | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/layouts/shortcodes/image.html b/layouts/shortcodes/image.html @@ -1,3 +1,3 @@ {{ if .Get "src" }} - <img src="{{ .Get "src" | safeURL }}" {{ with .Get "alt" }} alt="{{ . | plainify }}" {{ end }} class="{{ with .Get "position"}}{{ . }}{{ else -}} left {{- end }}" {{ with .Get "style" }} style="{{ . | safeCSS }}" {{ end }} /> +<img src="{{ .Get "src" | safeURL }}" {{ with .Get "alt" }} alt="{{ . | plainify }}" {{ end }} class="{{ with .Get "position"}}{{ . }}{{ else -}} left {{- end }}" {{ with .Get "style" }} style="{{ . | safeCSS }}" {{ end }} {{ with .Get "width" }} width="{{ . | plainify }}" {{ end }} {{ with .Get "height" }} height="{{ . | plainify }}" {{ end }} /> {{ end }}