瀏覽代碼

Use language from configuration.

The header should use the language supplied in the configuration rather than hardcoding to english (US).
Matthew Buckett 9 年之前
父節點
當前提交
d06d24a0a3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      layouts/partials/head.html

+ 1
- 1
layouts/partials/head.html 查看文件

@@ -1,5 +1,5 @@
1 1
 <!DOCTYPE html>
2
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
2
+<html xmlns="http://www.w3.org/1999/xhtml"{{with .Site.LanguageCode}} xml:lang="{{.}}" lang="{{.}}"{{end}}>
3 3
 <head>
4 4
   <link href="http://gmpg.org/xfn/11" rel="profile">
5 5
   <meta http-equiv="content-type" content="text/html; charset=utf-8">