From 86ee18c4c3bca2c694cfe6995e58cec81f022718 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Thu, 18 Aug 2016 23:09:26 -0400 Subject: [PATCH] Try new date format --- _layouts/post.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/_layouts/post.html b/_layouts/post.html index 4651bef9..234034a5 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -58,7 +58,17 @@

{{ page.title }}

-

{{ page.date | date: "%b %d %Y" }}

+

+ {% assign d = page.date | date: "%-d" %} + {{ page.date | date: "%B" }} + {% case d %} + {% when '1' or '21' or '31' %}{{ d }}st + {% when '2' or '22' %}{{ d }}nd + {% when '3' or '23' %}{{ d }}rd + {% else %}{{ d }}th + {% endcase %}, + {{ page.date | date: "%Y" }} +

{{ content }}