Merge pull request #238 from mikepianka/master
Fix issue where page bundle images fail to load
This commit is contained in:
commit
38e14287a9
|
@ -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 -}}
|
||||||
|
|
Loading…
Reference in New Issue