1
0
Fork 0

Merge pull request #180 from MetalBlueberry/patch-1

Fix theme.svg preload
This commit is contained in:
南小北 2023-07-16 12:07:51 +08:00 committed by GitHub
commit f8eba3b591
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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