about summary refs log tree commit diff
path: root/layouts/_default/baseof.html
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2023-07-29 17:33:12 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2023-07-29 17:33:12 +0700
commit8261eed6f8c2aeb2488a481f1d89ab9c8ff3a119 (patch)
tree4dd87c1ca0f2ebc2a459395ee10a3547db3be106 /layouts/_default/baseof.html
parent5f84f18c24b3bf64768befad82823a59c26e65d5 (diff)
downloadvictor-8261eed6f8c2aeb2488a481f1d89ab9c8ff3a119.tar.gz
Support multilingual
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index b17f8ce..bd9f83d 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -5,7 +5,11 @@ SPDX-License-Identifier: MIT
 */}}
 
 <!DOCTYPE html>
+{{ with .Page.Params.Lang }}
+<html lang="{{ . }}">
+{{ else }}
 <html lang="{{ .Page.Language.Lang }}">
+{{ end }}
 <head>
     {{ block "head" . }}
         {{ partial "head.html" . }}