commit d023e3b56011d349703373540dff5cf7e50beb85
parent 2b5a86a26bdbf80d88e354263d0b1f9773b33c9c
Author: Yihui Xie <xie@yihui.name>
Date: Fri, 16 Jun 2017 22:50:19 -0500
add language code
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git 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
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html>
+<html lang="{{ .Site.LanguageCode }}">
<head>
<meta charset="utf-8">
<title>{{ .Title }} | {{ .Site.Title }}</title>