diff options
author | Joe Mooring <[email protected]> | 2024-02-22 11:51:22 -0800 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-02-23 09:32:32 +0100 |
commit | 36bf3cb98cf8d7a8519df473196ee73b9d014244 (patch) | |
tree | d78beaf39a153ba7f6d868cb5215b1180c24737d /config | |
parent | ea0ba9751d9b6a5dec9261676287832717c0ca17 (diff) | |
download | hugo-36bf3cb98cf8d7a8519df473196ee73b9d014244.tar.gz hugo-36bf3cb98cf8d7a8519df473196ee73b9d014244.zip |
hugolib: Add capitalizeListTitles config option
Whether to capitalize automatic page titles, applicable to section,
taxonomy, and term pages. Default is true.
Closes #9793
Closes #12115
Diffstat (limited to 'config')
-rw-r--r-- | config/allconfig/allconfig.go | 3 | ||||
-rw-r--r-- | config/allconfig/load.go | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/config/allconfig/allconfig.go b/config/allconfig/allconfig.go index 21d12b0c7..469a164cf 100644 --- a/config/allconfig/allconfig.go +++ b/config/allconfig/allconfig.go @@ -538,6 +538,9 @@ type RootConfig struct { // Note that this currently only works for English, but you can provide your own title in the content file's front matter. PluralizeListTitles bool + // Whether to capitalize automatic page titles, applicable to section, taxonomy, and term pages. + CapitalizeListTitles bool + // Make all relative URLs absolute using the baseURL. // <docsmeta>{"identifiers": ["baseURL"] }</docsmeta> CanonifyURLs bool diff --git a/config/allconfig/load.go b/config/allconfig/load.go index cb267422f..8675ced23 100644 --- a/config/allconfig/load.go +++ b/config/allconfig/load.go @@ -189,6 +189,7 @@ func (l configLoader) applyDefaultConfig() error { "menus": maps.Params{}, "disableLiveReload": false, "pluralizeListTitles": true, + "CapitalizeListTitles": true, "forceSyncStatic": false, "footnoteAnchorPrefix": "", "footnoteReturnLinkContents": "", |