mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 10:22:10 -05:00
9b0050e9aa
git-subtree-dir: docs git-subtree-split: 5c085a37b297bf12f59efeaae591418ec025c10d
689 B
689 B
title | description | categories | keywords | action | aliases | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
inflect.Humanize | Returns the humanized version of the input with the first letter capitalized. |
|
|
{{ humanize "my-first-post" }} → My first post
{{ humanize "myCamelPost" }} → My camel post
If the input is an integer or a string representation of an integer, humanize returns the number with the proper ordinal appended.
{{ humanize "52" }} → 52nd
{{ humanize 103 }} → 103rd