{{ $style := "light-without-switcher" }} {{ if and (isset site.Params "style") (ne site.Params.style "") }} {{ $style = site.Params.style | lower }} {{ end }} {{ if not (in (slice "light-without-switcher" "dark-without-switcher") $style) }} {{ if ne "auto-without-switcher" $style }}