mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-10-01 01:06:14 -04:00
Fix profileMode imageUrl preloaded on every page (#495)
Instead we now only preload on the home page. Closes #494 Signed-off-by: Daniel F. Dickinson <20735818+danielfdickinson@users.noreply.github.com>
This commit is contained in:
parent
81fcd8f9d4
commit
a3ad238f78
@ -59,7 +59,7 @@
|
||||
{{- end }}
|
||||
|
||||
{{- with .Site.Params.profileMode }}
|
||||
{{- if and .enabled .imageUrl }}
|
||||
{{- if and .enabled .imageUrl $.IsHome }}
|
||||
<link rel="preload" href="{{ .imageUrl }}" as="image">
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
Loading…
Reference in New Issue
Block a user