From 49eea02f7b74fb1560173b78cafd5e62a4e8ab39 Mon Sep 17 00:00:00 2001 From: mboultoureau Date: Mon, 1 Aug 2022 08:07:12 +0200 Subject: [PATCH] Fix preload dark icon --- layouts/partials/head.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 59da3ee..eccd837 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -33,10 +33,14 @@ {{ end }} + {{ $dark_icon := "theme.png" }} + {{ if site.Params.monoDarkIcon }} + {{ $dark_icon := "theme.svg" }} + {{ end }} {{ $avatar_url := $.Scratch.Get "avatar_url" }}