summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDSRKafuU2020-05-10 03:06:54 -0500
committerGitHub2020-05-10 03:06:54 -0500
commitfc69a162308b53c574d23543d42d6e98abf816a4 (patch)
treee32509ae9cbb0d1c2e6313c3c6fc9ec6ccdc7a99
parentfb67636d1c9e67431d77c4d70ef6b75644d09331 (diff)
parent9d184dd845eaaabc05d65256e48fe16d8f1d641c (diff)
downloadhugo-theme-fuji-fc69a162308b53c574d23543d42d6e98abf816a4.tar.gz
hugo-theme-fuji-fc69a162308b53c574d23543d42d6e98abf816a4.tar.bz2
hugo-theme-fuji-fc69a162308b53c574d23543d42d6e98abf816a4.zip
Merge pull request #17 from akgnah/master
Fix html lang attribute
-rw-r--r--exampleSite/config.toml5
-rw-r--r--layouts/_default/baseof.html2
2 files changed, 3 insertions, 4 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 73a1909..6241b27 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -7,9 +7,8 @@ enableRobotsTXT = true
disableKinds = ["taxonomyTerm"]
## Change this two to switch between different language
-## Now support: en, zh-hans, zh-hant, ja, nl
-defaultContentLanguage = "en"
-languageCode = "en"
+languageCode = "en" # For RSS, view https://www.rssboard.org/rss-language-codes
+defaultContentLanguage = "en" # For HTML page, now support: en, zh-hans, zh-hant, ja, nl
summaryLength = 100 # Custom cummary length, add <!--more--> in post file to custom split point
paginate = 10
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 1c2d48b..8d4a8db 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html lang="{{ .Site.LanguageCode }}">
+<html lang="{{ .Site.Language.Lang }}">
{{ partial "head.html" . }}
<body class="d-flex flex-column h-100">