mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 12:35: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">
|
<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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue