about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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>