Skip to content

Commit 6945484

Browse files
committed
fix mixture of permanent and relative links
1 parent c2f250e commit 6945484

File tree

2 files changed

+2
-2
lines changed

2 files changed

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

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)