Cull excessive JS/CSS for {dark,light}-without-swticher
styles
This commit is contained in:
parent
f6769864be
commit
f4e0412244
3 changed files with 25 additions and 6 deletions
|
@ -3,7 +3,8 @@
|
|||
{{ $style = site.Params.style | lower }}
|
||||
{{ end }}
|
||||
|
||||
{{ if not (in (slice "light-without-switcher" "dark-without-switcher" "auto-without-switcher") $style) }}
|
||||
{{ if not (in (slice "light-without-switcher" "dark-without-switcher") $style) }}
|
||||
{{ if ne "auto-without-switcher" $style }}
|
||||
<button class="theme-switcher">
|
||||
{{ i18n "darkTheme" }}
|
||||
</button>
|
||||
|
@ -84,4 +85,5 @@ function showContent() {
|
|||
document.body.style.visibility = 'visible';
|
||||
document.body.style.opacity = 1;
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue