mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-25 07:48:52 +00:00
content: Clarify page title values
Co-authored-by: Will Faught <willfaught@users.noreply.github.com>
This commit is contained in:
@@ -19,7 +19,16 @@ title = 'About us'
|
||||
{{ .Title }} → About us
|
||||
```
|
||||
|
||||
With section, taxonomy, and term pages not backed by a file, the `Title` method returns the section name, capitalized and pluralized. You can disable these transformations by setting [`capitalizeListTitles`] and [`pluralizeListTitles`] in your site configuration. For example:
|
||||
When a page is not backed by a file, the value returned by the `Title` method depends on the page [kind](g).
|
||||
|
||||
Page kind|Page title when the page is not backed by a file
|
||||
:--|:--
|
||||
home|site title
|
||||
section|section name (capitalized and pluralized)
|
||||
taxonomy|taxonomy name (capitalized and pluralized)
|
||||
term|term name (capitalized and pluralized)
|
||||
|
||||
You can disable automatic capitalization and pluralization in your site configuration:
|
||||
|
||||
{{< code-toggle file=hugo >}}
|
||||
capitalizeListTitles = false
|
||||
@@ -32,8 +41,6 @@ You can change the capitalization style in your site configuration to one of `ap
|
||||
titleCaseStyle = "firstupper"
|
||||
{{< /code-toggle >}}
|
||||
|
||||
See [details].
|
||||
See [details].
|
||||
|
||||
[`capitalizeListTitles`]: /configuration/all/#capitalizelisttitles
|
||||
[`pluralizeListTitles`]: /configuration/all/#pluralizelisttitles
|
||||
[details]: /configuration/all/#title-case-style
|
||||
|
||||
Reference in New Issue
Block a user