From 73e36ff38e45c955743667a4492a80c4abcea0b4 Mon Sep 17 00:00:00 2001 From: Morgan Date: Sun, 29 Oct 2023 16:33:25 +0900 Subject: [PATCH] Update themes/mytheme/layouts/partials/header.html --- themes/mytheme/layouts/partials/header.html | 107 +++++++++++--------- 1 file changed, 59 insertions(+), 48 deletions(-) diff --git a/themes/mytheme/layouts/partials/header.html b/themes/mytheme/layouts/partials/header.html index 539b5c0..b78482b 100644 --- a/themes/mytheme/layouts/partials/header.html +++ b/themes/mytheme/layouts/partials/header.html @@ -1,51 +1,3 @@ - -{{- /* theme-toggle is enabled */}} -{{- if (not site.Params.disableThemeToggle) }} -{{- /* theme is light */}} -{{- if (eq site.Params.defaultTheme "light") }} - -{{- /* theme is dark */}} -{{- else if (eq site.Params.defaultTheme "dark") }} - -{{- else }} -{{- /* theme is auto */}} - -{{- end }} -{{- /* theme-toggle is disabled and theme is auto */}} -{{- else if (and (ne site.Params.defaultTheme "light") (ne site.Params.defaultTheme "dark"))}} - -{{- end }} -
+ +{{- /* theme-toggle is enabled */}} +{{- if (not site.Params.disableThemeToggle) }} +{{- /* theme is light */}} +{{- if (eq site.Params.defaultTheme "light") }} + +{{- /* theme is dark */}} +{{- else if (eq site.Params.defaultTheme "dark") }} + +{{- else }} +{{- /* theme is auto */}} + +{{- end }} +{{- /* theme-toggle is disabled and theme is auto */}} +{{- else if (and (ne site.Params.defaultTheme "light") (ne site.Params.defaultTheme "dark"))}} + +{{- end }} \ No newline at end of file