mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-02 03:29:35 -05:00
702 B
702 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 either an int64 value or the string representation of an integer, humanize returns the number with the proper ordinal appended.
{{ humanize "52" }} → 52nd
{{ humanize 103 }} → 103rd