Skip to content

Commit

Permalink
Fix profileMode imageUrl preloaded on every page (#495)
Browse files Browse the repository at this point in the history
Instead we now only preload on the home page.
Closes #494

Signed-off-by: Daniel F. Dickinson <20735818+danielfdickinson@users.noreply.github.com>
  • Loading branch information
danielfdickinson authored Aug 10, 2021
1 parent 81fcd8f commit a3ad238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit a3ad238

Please sign in to comment.