mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-03 04:02:38 +00:00
6f0ba95935
These references haven't been visible for years. Related to: - https://github.com/gohugoio/gohugoioTheme/issues/24 - https://github.com/gohugoio/gohugoioTheme/pull/216
928 B
928 B
title, description, date, publishdate, lastmod, categories, menu, keywords, signature, workson, hugoversion, relatedfuncs, deprecated, aliases
| title | description | date | publishdate | lastmod | categories | menu | keywords | signature | workson | hugoversion | relatedfuncs | deprecated | aliases | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| title | Converts all characters in the provided string to title case. | 2017-02-01 | 2017-02-01 | 2017-02-01 |
|
|
|
|
false |
{{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 Initial Caps.
{{ 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 }}
Configure Title Case
The default is AP Stylebook, but you can configure it.