Fixes incorrect language codes referenced in the baseof.html template by updating the lang attribute to use .Site.Language.LanguageCode instead of site.Language.LanguageCode and .Site.Language.LanguageDirection instead of site.Language.LanguageDirection, ensuring the HTML language matches the configuration.

pull/840/head
Seth Rose 2024-03-26 16:37:56 -05:00
parent 50b77b2836
commit 5a0a0b8d5b
1 changed files with 2 additions and 2 deletions

View File

@ -2,8 +2,8 @@
{{- partial "partials/functions/init.html" . -}} {{- partial "partials/functions/init.html" . -}}
<!doctype html> <!doctype html>
<html <html
lang="{{- site.Language.LanguageCode | default "" -}}" lang="{{- .Site.Language.LanguageCode | default "" -}}"
dir="{{- site.Language.LanguageDirection | default "ltr" -}}" dir="{{- .Site.Language.LanguageDirection | default "ltr" -}}"
class="scroll-smooth" class="scroll-smooth"
data-default-appearance="{{- .Site.Params.defaultAppearance | default "light" -}}" data-default-appearance="{{- .Site.Params.defaultAppearance | default "light" -}}"
data-auto-appearance="{{- .Site.Params.autoSwitchAppearance | default "true" -}}" data-auto-appearance="{{- .Site.Params.autoSwitchAppearance | default "true" -}}"