html[lang]: use site.Language.Lang when languageCode is not set.

Fixes #613
This commit is contained in:
Regis Philibert 2023-02-03 14:53:03 -05:00
parent 315a00623c
commit 906d7bec02
No known key found for this signature in database

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{ site.LanguageCode | default "en" }}" {{- with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }} dir="{{ . }}" {{- end }}>
<html lang="{{ site.LanguageCode | default site.Language.Lang }}" {{- with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }} dir="{{ . }}" {{- end }}>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">