about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorYihui Xie2017-06-16 22:50:19 -0500
committerYihui Xie2017-06-16 22:50:19 -0500
commitd023e3b56011d349703373540dff5cf7e50beb85 (patch)
tree92b0b03fdea55a8dfa0fa1e2f964b8c41df8da27
parent2b5a86a26bdbf80d88e354263d0b1f9773b33c9c (diff)
downloadhugo-xmin-d023e3b56011d349703373540dff5cf7e50beb85.tar.lz
hugo-xmin-d023e3b56011d349703373540dff5cf7e50beb85.tar.zst
hugo-xmin-d023e3b56011d349703373540dff5cf7e50beb85.zip
add language code
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/partials/header.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 4badc27..e262bb7 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -1,4 +1,5 @@
 baseurl = "/"
+languageCode = "en-us"
 title = "A minimal Hugo website"
 theme = "hugo-xmin"
 googleAnalytics = ""
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 5067848..6f291e2 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html lang="{{ .Site.LanguageCode }}">
   <head>
     <meta charset="utf-8">
     <title>{{ .Title }} | {{ .Site.Title }}</title>