use .Params.language to determine html lang

This commit is contained in:
Reorx 2022-05-05 01:17:09 +08:00
parent 29f261e12a
commit 7f71a99e21
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{ site.Language }}" dir="{{ .Language.LanguageDirection | default "auto" }}"> <html lang="{{ .Params.language | default .Language.Lang }}" dir="{{ .Language.LanguageDirection | default "auto" }}">
<head> <head>
{{- partial "head.html" . }} {{- partial "head.html" . }}