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 }}
|
{{- end }}
|
||||||
|
|
||||||
{{- with .Site.Params.profileMode }}
|
{{- with .Site.Params.profileMode }}
|
||||||
{{- if and .enabled .imageUrl }}
|
{{- if and .enabled .imageUrl $.IsHome }}
|
||||||
<link rel="preload" href="{{ .imageUrl }}" as="image">
|
<link rel="preload" href="{{ .imageUrl }}" as="image">
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in New Issue