Use relative URLs for image sources

This commit is contained in:
Will Faught
2025-02-22 21:49:09 -08:00
parent fbcfd1124a
commit 1b0ca92c5a

View File

@@ -121,7 +121,7 @@
{{ $smallerResource = fingerprint $smallerResource }} {{ $smallerResource = fingerprint $smallerResource }}
{{ $intrinsicHeight = $smallerResource.Height }} {{ $intrinsicHeight = $smallerResource.Height }}
{{ $intrinsicWidth = $smallerResource.Width }} {{ $intrinsicWidth = $smallerResource.Width }}
{{ $src = $smallerResource.Permalink }} {{ $src = $smallerResource.RelPermalink }}
{{ if and (not $sizes) (not $srcset) }} {{ if and (not $sizes) (not $srcset) }}
{{ $partialResource := "" }} {{ $partialResource := "" }}
@@ -223,9 +223,9 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ else if $resource }} {{ else if $resource }}
{{ $src = $resource.Permalink }} {{ $src = $resource.RelPermalink }}
{{ else }} {{ else }}
{{ $src = absLangURL $src }} {{ $src = relLangURL $src }}
{{ end }} {{ end }}
{{ $content := partial "paige/tag-img.html" (dict {{ $content := partial "paige/tag-img.html" (dict