From a6fea9b4a03cf63359f89bef72564b1bb77f86e0 Mon Sep 17 00:00:00 2001 From: Wind <33996345+windbelike@users.noreply.github.com> Date: Mon, 26 Jun 2023 14:16:31 +0800 Subject: [PATCH] Update header.html fix build error --- layouts/partials/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e7316cc..fbfe2a9 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -34,7 +34,7 @@ // dark theme const metaTheme = document.querySelector('meta[name="theme-color"]'); - const lightBg = `{{ $.Scratch.Get "bg_color" }}`.replace(/"/g, ''); + const lightBg = "{{ $.Scratch.Get `bg_color` }}".replace(/"/g, ''); const setDark = (isDark) => { metaTheme.setAttribute('content', isDark ? '#000' : lightBg); htmlClass[isDark ? 'add' : 'remove']('dark');