diff --git a/layouts/partials/helper/image.html b/layouts/partials/helper/image.html
index f73e985..5276f2e 100644
--- a/layouts/partials/helper/image.html
+++ b/layouts/partials/helper/image.html
@@ -5,8 +5,8 @@
{{ if $imageValue }}
{{ $result = merge $result (dict "exists" true) }}
-
{{ $url := urls.Parse $imageValue }}
+
{{ if or (eq $url.Scheme "http") (eq $url.Scheme "https") }}
{{ $result = merge $result (dict "permalink" $imageValue) }}
@@ -27,11 +27,11 @@
{{ errorf "Failed loading image: %q" $imageValue }}
{{ $result = merge $result (dict "exists" false) }}
{{ end }}
+
{{ end }}
{{ else if and (ne .Type nil) (index .Context.Site.Params.defaultImage .Type) }}
-
{{ $defaultImageSetting := index .Context.Site.Params.defaultImage .Type }}
{{ if $defaultImageSetting.enabled }}
@@ -52,11 +52,12 @@
{{ end }}
{{ else }}
-
+
{{ $result = merge $result (dict "permalink" $defaultImageSetting.src) }}
-
{{ end }}
+
{{ end }}
+
{{ end }}
{{ return $result }}
\ No newline at end of file