mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-10-01 01:06:14 -04:00
Fix error with profileMode imageUrl on Windows devices
when imageUrl was set with external link resources.Get throws an error
Ref: 22ef5da20d
fixes: #1019
This commit is contained in:
parent
1f0f294c85
commit
ddfea82cc7
@ -2,7 +2,10 @@
|
||||
{{- with site.Params.profileMode }}
|
||||
<div class="profile_inner">
|
||||
{{- 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 -}}
|
||||
|
Loading…
Reference in New Issue
Block a user