I’ve been trying the new ordinal date filter but I get this message when I try to run the code. In my case the following pops up. I’ve tried both filters on the docs and one I found on a blog, none of them work.
Liquid Exception: no implicit conversion of Integer into String in /_layouts/post.html
It creates output if I remove the quotes around ordinal but doesn’t actually produce an ordinal (no "nth, or “rd” etc).
I haven’t had a chance to sit down at my PC yet, but once I do I will try the date_to_string versions. Also I noticed the templates on jekyll.rb use “page.time” instead of “page.date” which seems like a red flag of sorts.
Stupid question but what does the output of {{ page.date }} look like? Maybe that’s not in ISO format and could be why the filter isn’t working as it’s in a format it’s not expecting.
Yep, it’s the lastest, I have a cronjob update the gems for me.
Figured it out, it was something pretty stupid. I had copied an ordinal plugin from the web into the _plugin folder. Removing the file completely fixed the issue.
Now I only wish we had an option to maybe put the ordinal part (the “nth”, “rd”, “nd”) into superscript.
Thanks. I think that will work, I’ll check it out. The font I have doesn’t have “proper” superscript support outside of numbers, but it might be good enough.