hugo/docs/content/en/functions/strings/Title.md
2023-10-20 09:43:56 +02:00

941 B

title linkTitle description categories keywords menu function relatedFunctions aliases
strings.Title title Converts the provided string to title case.
functions
docs
parent
functions
aliases returnType signatures
title
string
strings.Title STRING
strings.FirstUpper
strings.Title
strings.ToLower
strings.ToUpper
/functions/title
{{ title "table of contents (TOC)" }} → "Table of Contents (TOC)"

By default, Hugo adheres to the capitalization rules in the Associated Press (AP) Stylebook. Change your site configuration if you would prefer to follow the Chicago Manual of Style, or to use Go's convention of capitalizing every word.