2017-08-10 11:18:22 -04:00
---
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
2018-03-11 15:39:20 -04:00
categories: [functions]
2017-08-10 11:18:22 -04:00
menu:
docs:
parent: "functions"
2017-09-21 13:03:00 -04:00
keywords: [strings]
2017-08-10 11:18:22 -04:00
signature: ["title INPUT"]
workson: []
hugoversion:
relatedfuncs: []
deprecated: false
aliases: []
---
```
{{title "BatMan"}}` → "Batman"
```
2018-03-16 04:44:54 -04:00
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.
2017-08-10 11:18:22 -04:00
```
{{ range $name, $items := .Site.Taxonomies.categories }}
< li > < a href = "{{ printf " % s / % s " " categories " ( $ name | urlize | lower ) | absURL } } " > {{ $name | humanize | title }} ({{ len $items }})< / a > < / li >
{{ end }}
```