From c7ea514621e9ee8a53d78a73240e359a983ac045 Mon Sep 17 00:00:00 2001 From: Victor Date: Sat, 15 Jul 2023 17:05:19 +0200 Subject: [PATCH] Fix theme.svg preload The := operator will create a new variable instead of overriding the previous one --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 445f778..1374c0f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -44,7 +44,7 @@ {{ $dark_icon := "theme.png" }} {{ if site.Params.monoDarkIcon }} {{ - $dark_icon := "theme.svg" }} {{ end }} + $dark_icon = "theme.svg" }} {{ end }} {{ $avatar_url := $.Scratch.Get "avatar_url" }}