mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-10 03:24:49 -04:00
Update description of the humanize ordinal conversion
This commit is contained in:
parent
b8b4ccb6f4
commit
8945be9c64
@ -18,7 +18,7 @@ aliases: [/functions/humanize]
|
|||||||
{{ humanize "myCamelPost" }} → My camel 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.
|
If the input is an integer or a string representation of an integer, humanize returns the number with the proper ordinal appended.
|
||||||
|
|
||||||
```go-html-template
|
```go-html-template
|
||||||
{{ humanize "52" }} → 52nd
|
{{ humanize "52" }} → 52nd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user