--- title: title # linktitle: description: Converts all characters in the provided string to title case. godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 categories: [functions] menu: docs: parent: "functions" keywords: [strings] signature: ["title INPUT"] workson: [] hugoversion: relatedfuncs: [] deprecated: false aliases: [] --- ``` {{title "BatMan"}}` → "Batman" ``` Can be combined in pipes. In the following snippet, the link text is cleaned up using `humanize` to remove dashes and `title` to convert the value of `$name` to Intial Caps. ``` {{ range $name, $items := .Site.Taxonomies.categories }}
  • {{ $name | humanize | title }} ({{ len $items }})
  • {{ end }} ```