Skip to content

Commit a3ad238

Browse files
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 <[email protected]>
1 parent 81fcd8f commit a3ad238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/head.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
{{- end }}
6060

6161
{{- with .Site.Params.profileMode }}
62-
{{- if and .enabled .imageUrl }}
62+
{{- if and .enabled .imageUrl $.IsHome }}
6363
<link rel="preload" href="{{ .imageUrl }}" as="image">
6464
{{- end }}
6565
{{- end }}

0 commit comments

Comments
 (0)