Ordinalize date formatting in Liquid/Jekyll (e.g. “1st”, “3rd” and “4th”)
问题 Is it possible to add day of the month suffixes to a date format in Liquid or Jekyll? For example: January 23rd or May 18th. I've referred to the Shopify wiki, but I'm shocked to see that there's no formatting there for it. Surely something that simple should be? :/ 回答1: The Liquid Template Engine that Jekyll uses doesn't offer the ability to ordinalize (e.g. turn "1" into "1st" and "3" into "3rd") out of the box. However, it is possible to use filters and tags to provide that functionality.