Skip to content

Commit 38e1428

Browse files
authored
Merge pull request #238 from mikepianka/master
Fix issue where page bundle images fail to load
2 parents a3a5c0d + 6945484 commit 38e1428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/shortcodes/img.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{{ end -}}
1111

1212
{{ range $widths -}}
13-
{{ $srcUrl := (printf "%dx" . | $image.Resize).RelPermalink -}}
13+
{{ $srcUrl := (printf "%dx" . | $image.Resize).Permalink -}}
1414
{{ if eq $imgSrc "" -}}{{ $imgSrc = $srcUrl -}}{{ end -}}
1515
{{ $imgSrcSet = $imgSrcSet | append (printf "%s %dw" $srcUrl .) -}}
1616
{{ end -}}

0 commit comments

Comments
 (0)