Fix preload dark icon
This commit is contained in:
parent
673de3b4c1
commit
49eea02f7b
1 changed files with 5 additions and 1 deletions
|
@ -33,10 +33,14 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- Preload -->
|
<!-- Preload -->
|
||||||
|
{{ $dark_icon := "theme.png" }}
|
||||||
|
{{ if site.Params.monoDarkIcon }}
|
||||||
|
{{ $dark_icon := "theme.svg" }}
|
||||||
|
{{ end }}
|
||||||
<link
|
<link
|
||||||
rel="preload"
|
rel="preload"
|
||||||
as="image"
|
as="image"
|
||||||
href="{{ `theme.{{ if site.Params.monoDarkIcon }}svg{{ else }}png{{ end }}` | absURL }}"
|
href="{{ $dark_icon | absURL }}"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{{ $avatar_url := $.Scratch.Get "avatar_url" }}
|
{{ $avatar_url := $.Scratch.Get "avatar_url" }}
|
||||||
|
|
Loading…
Reference in a new issue