mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Try new date format
This commit is contained in:
parent
892b94132a
commit
86ee18c4c3
1 changed files with 11 additions and 1 deletions
|
@ -58,7 +58,17 @@
|
|||
<div id="main_content_wrap" class="outer">
|
||||
<section id="main_content" class="inner">
|
||||
<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 }}
|
||||
</section>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue