diff --git a/config/_default/languages.en.toml b/config/_default/languages.en.toml index f75f48f4..fc66548a 100644 --- a/config/_default/languages.en.toml +++ b/config/_default/languages.en.toml @@ -1,7 +1,7 @@ languageCode = "en" languageName = "English" displayName = "EN" -htmlCode = "en" +isoCode = "en" weight = 1 rtl = false diff --git a/exampleSite/config/_default/languages.en.toml b/exampleSite/config/_default/languages.en.toml index 8ca94547..ac2ea022 100644 --- a/exampleSite/config/_default/languages.en.toml +++ b/exampleSite/config/_default/languages.en.toml @@ -1,21 +1,21 @@ languageCode = "en-au" languageName = "English (Australia)" displayName = ":flag-au:" -htmlCode = "en-AU" +isoCode = "en-AU" weight = 1 rtl = false title = "Congo" # logo = "img/logo.jpg" -# description = "My awesome website" -# copyright = "Copy, _right?_ :thinking_face:" +description = "A powerful, lightweight theme for Hugo built with Tailwind CSS." +copyright = "© 2022 Congo contributors" dateFormat = "2 January 2006" [author] name = "Congo" image = "img/author.jpg" - # headline = "" + headline = "Not your ordinary theme!" bio = "This is an example author bio, and although there's a stock photo of a dog here, this article was actually created by a human. :dog:" links = [ { twitter = "https://twitter.com/" }, diff --git a/exampleSite/content/docs/configuration.md b/exampleSite/content/docs/configuration.md index b1399b7f..2b932d5d 100644 --- a/exampleSite/content/docs/configuration.md +++ b/exampleSite/content/docs/configuration.md @@ -72,10 +72,10 @@ The default file can be used as a template to create additional languages, or re |Name|Default|Description| |---|---|---| -|`languageCode`|`"en"`|The language code for this file. It can be a top-level language (ie. `en`) or a sub-variant (ie. `en-au`) and should match the language code in the filename. Hugo expects this value to always be in lowercase. For proper HTML compliance, set the `htmlCode` parameter which is case-sensitive.| +|`languageCode`|`"en"`|The Hugo language code for this file. It can be a top-level language (ie. `en`) or a sub-variant (ie. `en-au`) and should match the language code in the filename. Hugo expects this value to always be in lowercase. For proper HTML compliance, set the `isoCode` parameter which is case-sensitive.| |`languageName`|`"English"`|The name of the language.| |`displayName`|`"EN"`|The name used when the language appears on the website.| -|`htmlCode`|`"en"`|The language code for HTML metadata purposes. It can be a top-level language (ie. `en`) or a sub-variant (ie. `en-AU`).| +|`isoCode`|`"en"`|The ISO language code for HTML metadata purposes. It can be a top-level language (ie. `en`) or a sub-variant (ie. `en-AU`).| |`weight`|`1`|The weight determines the order of languages when building multilingual sites.| |`rtl`|`false`|Whether or not this is a RTL language. Set to `true` to reflow content from right-to-left. Congo fully supports using RTL and LTR languages at the same time and will dynamically adjust to both.| |`dateFormat`|`"2 January 2006"`|How dates are formatted in this language. Refer to the [Hugo docs](https://gohugo.io/functions/format/#gos-layout-string) for acceptable formats.| diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index f975e26a..03904401 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,9 +1,9 @@ {{/* Copyright */}}
- {{- with .Site.Copyright }} + {{- with .Site.Params.copyright }} {{ . | emojify | markdownify }} {{- else }} ©