Skip to content

Commit

Permalink
Use relative URLs for image sources
Browse files Browse the repository at this point in the history
  • Loading branch information
willfaught committed Feb 23, 2025
1 parent fbcfd11 commit 1b0ca92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/paige/image.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
{{ $smallerResource = fingerprint $smallerResource }}
{{ $intrinsicHeight = $smallerResource.Height }}
{{ $intrinsicWidth = $smallerResource.Width }}
{{ $src = $smallerResource.Permalink }}
{{ $src = $smallerResource.RelPermalink }}

{{ if and (not $sizes) (not $srcset) }}
{{ $partialResource := "" }}
Expand Down Expand Up @@ -223,9 +223,9 @@
{{ end }}
{{ end }}
{{ else if $resource }}
{{ $src = $resource.Permalink }}
{{ $src = $resource.RelPermalink }}
{{ else }}
{{ $src = absLangURL $src }}
{{ $src = relLangURL $src }}
{{ end }}

{{ $content := partial "paige/tag-img.html" (dict
Expand Down

0 comments on commit 1b0ca92

Please sign in to comment.