From 0b3a8bb29dc13c0150c374f87e7aa8a6ac1a8a55 Mon Sep 17 00:00:00 2001 From: Nicolas Kuttler Date: Thu, 12 Feb 2015 13:29:52 +0100 Subject: Ordinalize without plugin As the site will be build by github we can't use plugins --- _includes/ordinal.html | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 _includes/ordinal.html (limited to '_includes/ordinal.html') diff --git a/_includes/ordinal.html b/_includes/ordinal.html new file mode 100644 index 0000000..690ef57 --- /dev/null +++ b/_includes/ordinal.html @@ -0,0 +1,4 @@ +{% 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 %} -- cgit v1.2.3