add language code
authorYihui Xie <xie@yihui.name>
Sat, 17 Jun 2017 03:50:19 +0000 (22:50 -0500)
committerYihui Xie <xie@yihui.name>
Sat, 17 Jun 2017 03:50:19 +0000 (22:50 -0500)
exampleSite/config.toml
layouts/partials/header.html

index 4badc2701e71fc52e70d3713fb3b5fd69c23dafa..e262bb79fb961e5394c234508d48263c45d5fa6b 100644 (file)
@@ -1,4 +1,5 @@
 baseurl = "/"
+languageCode = "en-us"
 title = "A minimal Hugo website"
 theme = "hugo-xmin"
 googleAnalytics = ""
index 5067848c290f91c8a314d9ce4a7f9d8350a0a46c..6f291e2d991028d84675e2102d0f5fdf93582cca 100644 (file)
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html lang="{{ .Site.LanguageCode }}">
   <head>
     <meta charset="utf-8">
     <title>{{ .Title }} | {{ .Site.Title }}</title>