diff --git a/themes/mytheme/assets/css/core/theme-vars.css b/themes/mytheme/assets/css/core/theme-vars.css index ce9e139..4ef6624 100644 --- a/themes/mytheme/assets/css/core/theme-vars.css +++ b/themes/mytheme/assets/css/core/theme-vars.css @@ -18,7 +18,6 @@ } .dark { - --theme: #242424; --entry: rgb(46, 46, 51); --primary: rgb(218, 218, 219); --secondary: rgb(155, 156, 157); diff --git a/themes/mytheme/layouts/partials/footer.html b/themes/mytheme/layouts/partials/footer.html index d0066ef..8c76247 100644 --- a/themes/mytheme/layouts/partials/footer.html +++ b/themes/mytheme/layouts/partials/footer.html @@ -70,9 +70,17 @@ if (document.body.className.includes("dark")) { document.body.classList.remove('dark'); localStorage.setItem("pref-theme", 'light'); + {{- if site.Params.label.icon_dark }} + document.body.getElementById('main-logo').src = "{{site.Params.label.icon}}"; + {{- end }} + } else { document.body.classList.add('dark'); localStorage.setItem("pref-theme", 'dark'); + {{- if site.Params.label.icon_dark }} + document.body.getElementById('main-logo').src = "{{site.Params.label.icon_dark}}"; + {{- end }} + } }) diff --git a/themes/mytheme/layouts/partials/header.html b/themes/mytheme/layouts/partials/header.html index da83c76..a93101d 100644 --- a/themes/mytheme/layouts/partials/header.html +++ b/themes/mytheme/layouts/partials/header.html @@ -5,7 +5,7 @@ {{- if site.Title }} {{- if site.Params.label.icon }} - {{- end -}} {{- else }} @@ -14,7 +14,7 @@
{{- if (not site.Params.disableThemeToggle) }} -