diff --git a/layouts/partials/get_image.html b/layouts/partials/get_image.html
index 31e833c3..59785f2a 100644
--- a/layouts/partials/get_image.html
+++ b/layouts/partials/get_image.html
@@ -7,6 +7,8 @@
{{- end }}
{{- if $validKeyword }}
{{- $img = ((.context.Resources.ByType "image").GetMatch .keyword).Permalink }}
+{{- else if or (hasPrefix .url "//") (or (hasPrefix .url "http://") (hasPrefix .url "https://")) }}
+{{- $img = (.url | absURL) }}
{{- else if resources.GetMatch .url }}
{{- $img = (resources.GetMatch .url).Permalink }}
{{- else if .url }}