Skip to content

Commit

Permalink
Merge pull request thuliteio#238 from mikepianka/master
Browse files Browse the repository at this point in the history
Fix issue where page bundle images fail to load
  • Loading branch information
h-enk authored Apr 19, 2021
2 parents 3d55aa8 + a0f6ec2 commit 7f62e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/shortcodes/img.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand Down

0 comments on commit 7f62e15

Please sign in to comment.