Use absolute permalinks for images

master
Will Faught 2 years ago
parent c44a6b6c08
commit fc50818da3

@ -122,7 +122,7 @@
{{ $smallerresource = $smallerresource | fingerprint }} {{ $smallerresource = $smallerresource | fingerprint }}
{{ $intrinsicheight = $smallerresource.Height }} {{ $intrinsicheight = $smallerresource.Height }}
{{ $intrinsicwidth = $smallerresource.Width }} {{ $intrinsicwidth = $smallerresource.Width }}
{{ $src = $smallerresource.RelPermalink }} {{ $src = $smallerresource.Permalink }}
{{ if and (not $sizes) (not $srcset) }} {{ if and (not $sizes) (not $srcset) }}
{{ $partialresource := "" }} {{ $partialresource := "" }}
@ -224,7 +224,7 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ else }} {{ else }}
{{ $src = relLangURL $src }} {{ $src = absLangURL $src }}
{{ end }} {{ end }}
{{ $content := partial "paige/img.html" (dict {{ $content := partial "paige/img.html" (dict

Loading…
Cancel
Save