diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 0c0794f..4a44740 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -1,4 +1,9 @@ -{{ $image := .Page.Resources.GetMatch .Destination -}} +{{ $image := "" -}} +{{ if (urls.Parse .Destination).IsAbs }} + {{ $image = resources.GetRemote .Destination -}} +{{ else -}} + {{ $image = .Page.Resources.GetMatch .Destination -}} +{{ end -}} {{ with $image -}} {{ $lqip := $image.Resize site.Params.lqipWidth -}}