summaryrefslogtreecommitdiff
path: root/_includes/ordinal.html
blob: c94296307b4dac3bb81fc45f71dfa1705304e58d (plain)
1
2
3
4
5
{% 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 %}