mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2024-12-25 14:35:52 -05:00
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:
parent
81fcd8f9d4
commit
a3ad238f78
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user