diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 51a247d..4c8274d 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -1,7 +1,8 @@ {{ $destination := .Destination }} -{{ if not (hasPrefix .Destination "http") }} - {{ $resource := .Page.Resources.GetMatch $destination }} +{{ $resource := .Page.Resources.GetMatch $destination }} + +{{ if $resource }} {{ $destination = ($resource.Resize "1500x").RelPermalink }} {{ end }}