summaryrefslogtreecommitdiff
path: root/_includes/ordinal.html
blob: aac7b74f92d19c23f98cb3da3dd6bc8e660c1f09 (plain)
1
2
3
4
{% assign ordinalize=include.ordinalize %}{% if ordinalize == "1" or ordinalize == "21" or ordinalize == "31" %}st
{% elsif ordinalize == "2" or ordinalize == "22" %}nd
{% elsif ordinalize == "3" or ordinalize == "23" %}rd
{% else %}th{% endif %}