Always use site.LanguageCode

This commit is contained in:
Will Faught
2025-02-14 12:57:51 -08:00
parent bd76e76d30
commit 2390e8cb78
5 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
{{ $page := . }}
{{ $dark := eq ($page.Param "paige.site.color_scheme") "dark" }}
{{ $lang := site.Language.LanguageCode | default site.LanguageCode }}
{{ $lang := 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 }}>