1
0
Fork 0

Fix preload dark icon

This commit is contained in:
mboultoureau 2022-08-01 08:07:12 +02:00
parent 673de3b4c1
commit 49eea02f7b
1 changed files with 5 additions and 1 deletions

View File

@ -33,10 +33,14 @@
{{ end }}
<!-- Preload -->
{{ $dark_icon := "theme.png" }}
{{ if site.Params.monoDarkIcon }}
{{ $dark_icon := "theme.svg" }}
{{ end }}
<link
rel="preload"
as="image"
href="{{ `theme.{{ if site.Params.monoDarkIcon }}svg{{ else }}png{{ end }}` | absURL }}"
href="{{ $dark_icon | absURL }}"
/>
{{ $avatar_url := $.Scratch.Get "avatar_url" }}