1
0
Fork 0

Fix theme.svg preload

The := operator will create a new variable instead of overriding the previous one
This commit is contained in:
Victor 2023-07-15 17:05:19 +02:00 committed by GitHub
parent 779b824603
commit c7ea514621
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" }}