From 3bd0b46dc5f35b96fc7ee7ef804e5d92a3243016 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Mon, 29 Nov 2021 21:17:00 -0800 Subject: [PATCH] Update configuration page (#1585) Add copyright and languageCode entries. Fixes #1582 Fixes #1583 --- content/en/getting-started/configuration.md | 12 ++++++++++++ content/en/variables/site.md | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/content/en/getting-started/configuration.md b/content/en/getting-started/configuration.md index 1bf0ba64c..69c2bd624 100644 --- a/content/en/getting-started/configuration.md +++ b/content/en/getting-started/configuration.md @@ -166,6 +166,12 @@ Enable to turn relative URLs into absolute. The directory from where Hugo reads content files. {{% module-mounts-note %}} +### copyright + +**Default value:** "" + +Copyright notice for your site, typically displayed in the footer. + ### dataDir **Default value:** "data" @@ -275,6 +281,12 @@ If true, auto-detect Chinese/Japanese/Korean Languages in the content. This will ### imaging See [Image Processing Config](/content-management/image-processing/#image-processing-config). +### languageCode + +**Default value:** "" + +A language tag as defined by [RFC 5646](https://datatracker.ietf.org/doc/html/rfc5646). The internal [RSS template](https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/_default/rss.xml) populates its `` element with this value. The value is not used elsewhere. + ### languages See [Configure Languages](/content-management/multilingual/#configure-languages). diff --git a/content/en/variables/site.md b/content/en/variables/site.md index 03052d053..bdfeb6527 100644 --- a/content/en/variables/site.md +++ b/content/en/variables/site.md @@ -72,7 +72,7 @@ All the methods below, e.g. `.Site.RegularPages` can also be reached via the glo : indicates the language currently being used to render the website. This object's attributes are set in site configurations' language definition. .Site.LanguageCode -: a string representing the language as defined in the site configuration. This is mostly used to populate the RSS feeds with the right language code. +: a string representing the language tag as defined in the site configuration. .Site.LanguagePrefix : this can be used to prefix URLs to point to the correct language. It will even work when only one defined language. See also the functions [absLangURL](/functions/abslangurl/) and [relLangURL](/functions/rellangurl).