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
commit 38e14287a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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 -}}