github.com/rabbouni145/gg@v0.47.1/docs/content/en/functions/humanize.md (about) 1 --- 2 title: humanize 3 linktitle: 4 description: Returns the humanized version of an argument with the first letter capitalized. 5 godocref: 6 date: 2017-02-01 7 publishdate: 2017-02-01 8 lastmod: 2017-02-01 9 categories: [functions] 10 menu: 11 docs: 12 parent: "functions" 13 keywords: [strings,casing] 14 signature: ["humanize INPUT"] 15 workson: [] 16 hugoversion: 17 relatedfuncs: [] 18 deprecated: false 19 aliases: [] 20 --- 21 22 If the input is either an int64 value or the string representation of an integer, humanize returns the number with the proper ordinal appended. 23 24 25 ``` 26 {{humanize "my-first-post"}} → "My first post" 27 {{humanize "myCamelPost"}} → "My camel post" 28 {{humanize "52"}} → "52nd" 29 {{humanize 103}} → "103rd" 30 ``` 31