diff options
| author | Daniel F. Dickinson <20735818+danielfdickinson@users.noreply.github.com> | 2021-08-10 10:22:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-10 19:52:47 +0530 |
| commit | a3ad238f78757133f9af43cfeaa1e837858218f5 (patch) | |
| tree | f2ba836d605cc005b3fc4cd9c39ac59ef01beca9 | |
| parent | 81fcd8f9d416b536e929a32670df0bcdbe628276 (diff) | |
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>
| -rw-r--r-- | layouts/partials/head.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index ac9108a..d696594 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -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 }} |
