mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-02 19:52:38 +00:00
1.0 KiB
1.0 KiB
title, description, categories, keywords, params, aliases
| title | description | categories | keywords | params | aliases | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| strings.Title | Returns the given string, converting it to title case. |
|
|
{{ title "table of contents (TOC)" }} → Table of Contents (TOC)
By default, Hugo follows the capitalization rules published in the Associated Press Stylebook. Change your project configuration if you would prefer to:
- Follow the capitalization rules published in the Chicago Manual of Style
- Capitalize the first letter of every word
- Capitalize the first letter of the first word
- Disable the effects of the
titlefunction
The last option is useful if your theme uses the title function, and you would prefer to manually capitalize strings as needed.