{{ $page := . }}

{{ $dark := eq ($page.Param "paige.site.color_scheme") "dark" }}
{{ $lang := site.Language.LanguageCode | default site.LanguageCode }}
{{ $rtl := eq $page.Language.LanguageDirection "rtl" }}

<html {{ if $dark }} data-bs-theme="dark" {{ end }} data-paige="Paige theme from https://github.com/willfaught/paige" {{ if $rtl }} dir="rtl" {{ end }} {{ with $lang }} lang="{{ . }}" {{ end }}>
