mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 15:49:17 -04:00
Update configuration page (#1585)
Add copyright and languageCode entries. Fixes #1582 Fixes #1583
This commit is contained in:
parent
4cf1f013e9
commit
3bd0b46dc5
@ -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 `<language>` element with this value. The value is not used elsewhere.
|
||||
|
||||
### languages
|
||||
See [Configure Languages](/content-management/multilingual/#configure-languages).
|
||||
|
||||
|
@ -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).
|
||||
|
Loading…
x
Reference in New Issue
Block a user