diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index 468b9c1c7..a6bdaac68 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -10,7 +10,7 @@ {{ end -}} {{ range $widths -}} - {{ $srcUrl := (printf "%dx" . | $image.Resize).RelPermalink -}} + {{ $srcUrl := (printf "%dx" . | $image.Resize).Permalink -}} {{ if eq $imgSrc "" -}}{{ $imgSrc = $srcUrl -}}{{ end -}} {{ $imgSrcSet = $imgSrcSet | append (printf "%s %dw" $srcUrl .) -}} {{ end -}}