From b82244ab9bf73593fe4de03c7d69562c6039f20e Mon Sep 17 00:00:00 2001 From: zzossig Date: Mon, 25 Nov 2019 09:51:48 +0900 Subject: [PATCH] theme blink bug fixed --- assets/js/zzo.js | 1 - layouts/_default/baseof.html | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/js/zzo.js b/assets/js/zzo.js index d822565..cb238f5 100644 --- a/assets/js/zzo.js +++ b/assets/js/zzo.js @@ -2,7 +2,6 @@ $(document).ready(function() { // theme change var localTheme = localStorage.getItem('theme'); if (localTheme) { - $('#root').attr('class', `theme__${localTheme}`); $('.select-theme__item').each(function () { $(this).removeClass('is-active'); }); diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 106b5c0..13db639 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -13,6 +13,12 @@ +
{{ partial "navbar/site-nav" . }}