summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-05-05 01:17:09 +0800
committerReorx <novoreorx@gmail.com>2022-05-05 01:17:09 +0800
commit7f71a99e21049d1c46cb00f84d5a18426ce1855c (patch)
tree693bfa38e390afb7b33aabc1c49772d25bcaa50c
parent29f261e12a77b7bcfa82fc5340c6d471e3a35cf3 (diff)
use .Params.language to determine html lang
-rw-r--r--layouts/_default/baseof.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 5a694e7..513450b 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html lang="{{ site.Language }}" dir="{{ .Language.LanguageDirection | default "auto" }}">
+<html lang="{{ .Params.language | default .Language.Lang }}" dir="{{ .Language.LanguageDirection | default "auto" }}">
<head>
{{- partial "head.html" . }}