title.md (928B)
1 ---
2 title: title
3 # linktitle:
4 description: Converts all characters in the provided string to title case.
5 date: 2017-02-01
6 publishdate: 2017-02-01
7 lastmod: 2017-02-01
8 categories: [functions]
9 menu:
10 docs:
11 parent: "functions"
12 keywords: [strings]
13 signature: ["title INPUT"]
14 workson: []
15 hugoversion:
16 relatedfuncs: []
17 deprecated: false
18 aliases: []
19 ---
20
21
22 ```
23 {{title "BatMan"}}` → "Batman"
24 ```
25
26 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 Initial Caps.
27
28 ```
29 {{ range $name, $items := .Site.Taxonomies.categories }}
30 <li><a href="{{ printf "%s/%s" "categories" ($name | urlize | lower) | absURL }}">{{ $name | humanize | title }} ({{ len $items }})</a></li>
31 {{ end }}
32 ```
33
34 ## Configure Title Case
35
36 The default is AP Stylebook, but you can [configure it](/getting-started/configuration/#configure-title-case).