Merge pull request #238 from mikepianka/master

Fix issue where page bundle images fail to load
This commit is contained in:
Henk Verlinde
2021-04-19 14:07:55 +02:00
committed by GitHub

View File

@ -10,7 +10,7 @@
{{ end -}} {{ end -}}
{{ range $widths -}} {{ range $widths -}}
{{ $srcUrl := (printf "%dx" . | $image.Resize).RelPermalink -}} {{ $srcUrl := (printf "%dx" . | $image.Resize).Permalink -}}
{{ if eq $imgSrc "" -}}{{ $imgSrc = $srcUrl -}}{{ end -}} {{ if eq $imgSrc "" -}}{{ $imgSrc = $srcUrl -}}{{ end -}}
{{ $imgSrcSet = $imgSrcSet | append (printf "%s %dw" $srcUrl .) -}} {{ $imgSrcSet = $imgSrcSet | append (printf "%s %dw" $srcUrl .) -}}
{{ end -}} {{ end -}}