diff --git a/layouts/partials/index_profile.html b/layouts/partials/index_profile.html index c2ff3e69..d9ddbda5 100644 --- a/layouts/partials/index_profile.html +++ b/layouts/partials/index_profile.html @@ -2,7 +2,10 @@ {{- with site.Params.profileMode }}
{{- if .imageUrl -}} - {{- $img := resources.Get .imageUrl }} + {{- $img := "" }} + {{- if not (urls.Parse .imageUrl).IsAbs }} + {{- $img = resources.Get .imageUrl }} + {{- end }} {{- if $img }} {{- $processableFormats := (slice "jpg" "jpeg" "png" "tif" "bmp" "gif") -}} {{- if hugo.IsExtended -}}