Skip to content

Commit 323d982

Browse files
danielfdickinsonkylethedeveloper
authored andcommitted
Fix profileMode imageUrl preloaded on every page (adityatelange#495)
Instead we now only preload on the home page. Closes adityatelange#494 Signed-off-by: Daniel F. Dickinson <[email protected]>
1 parent c04ab9d commit 323d982

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
@@ -75,7 +75,7 @@
7575
{{- end }}
7676

7777
{{- with .Site.Params.profileMode }}
78-
{{- if and .enabled .imageUrl }}
78+
{{- if and .enabled .imageUrl $.IsHome }}
7979
<link rel="preload" href="{{ .imageUrl }}" as="image">
8080
{{- end }}
8181
{{- end }}

0 commit comments

Comments
 (0)