humanize.md (698B)
1 ---
2 title: humanize
3 linktitle:
4 description: Returns the humanized version of an argument with the first letter capitalized.
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,casing]
13 signature: ["humanize INPUT"]
14 workson: []
15 hugoversion:
16 relatedfuncs: [anchorize]
17 deprecated: false
18 aliases: []
19 ---
20
21 If the input is either an int64 value or the string representation of an integer, humanize returns the number with the proper ordinal appended.
22
23
24 ```
25 {{humanize "my-first-post"}} → "My first post"
26 {{humanize "myCamelPost"}} → "My camel post"
27 {{humanize "52"}} → "52nd"
28 {{humanize 103}} → "103rd"
29 ```