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:
Daniel F. Dickinson 2021-08-10 10:22:47 -04:00 committed by GitHub
parent 81fcd8f9d4
commit a3ad238f78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 }}