Update configuration page (#1585)

Add copyright and languageCode entries.

Fixes #1582
Fixes #1583
This commit is contained in:
Joe Mooring 2021-11-29 21:17:00 -08:00 committed by GitHub
parent 4cf1f013e9
commit 3bd0b46dc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -166,6 +166,12 @@ Enable to turn relative URLs into absolute.
The directory from where Hugo reads content files. {{% module-mounts-note %}} 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 ### dataDir
**Default value:** "data" **Default value:** "data"
@ -275,6 +281,12 @@ If true, auto-detect Chinese/Japanese/Korean Languages in the content. This will
### imaging ### imaging
See [Image Processing Config](/content-management/image-processing/#image-processing-config). 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 `<language>` element with this value. The value is not used elsewhere.
### languages ### languages
See [Configure Languages](/content-management/multilingual/#configure-languages). See [Configure Languages](/content-management/multilingual/#configure-languages).

View File

@ -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. : indicates the language currently being used to render the website. This object's attributes are set in site configurations' language definition.
.Site.LanguageCode .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 .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). : 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).