diff --git a/layouts/partials/head.html b/layouts/partials/head.html index c4c6ab0..b0c0768 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -21,12 +21,12 @@ {{ partial "favicons.html" . }} -{{ $style := "light-without-switcher" }} -{{ if and (isset site.Params "style") (ne site.Params.style "") }} - {{ $style = site.Params.style | lower }} +{{ $colorTheme := "light-without-switcher" }} +{{ if and (isset site.Params "colortheme") (ne site.Params.colortheme "") }} + {{ $colorTheme = site.Params.colortheme | lower }} {{ end }} -{{ if not (in (slice "light-without-switcher" "dark-without-switcher") $style) }} +{{ if not (in (slice "light-without-switcher" "dark-without-switcher") $colorTheme) }}