Try new date format

This commit is contained in:
Justin Ethier 2016-08-18 23:09:26 -04:00
parent 892b94132a
commit 86ee18c4c3

View file

@ -58,7 +58,17 @@
<div id="main_content_wrap" class="outer"> <div id="main_content_wrap" class="outer">
<section id="main_content" class="inner"> <section id="main_content" class="inner">
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>
<h2 class="date-labels">{{ page.date | date: "%b %d %Y" }}</h2> <h2 class="date-labels">
{% 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" }}
</h2>
{{ content }} {{ content }}
</section> </section>
</div> </div>