Forked from
KWARC / kwarc.info / www
779 commits behind the upstream repository.
-
Tom Wiesing authoredTom Wiesing authored
date.html 669 B
{% comment %}
Properly formats the date in yyyy[-mm] format.
Expects 'date' to be formatted as an argument.
{% endcomment %}
{% assign dateparts = include.date | split: "-" %}
{% assign year = dateparts[0] %}
{% assign month = dateparts[1] %}
{% if month == '01' %}
January
{% elsif month == '02' %}
February
{% elsif month == '03' %}
March
{% elsif month == '04' %}
April
{% elsif month == '05' %}
May
{% elsif month == '06' %}
June
{% elsif month == '07' %}
July
{% elsif month == '08' %}
August
{% elsif month == '09' %}
September
{% elsif month == '10' %}
October
{% elsif month == '11' %}
November
{% elsif month == '12' %}
December
{% endif %}
{{year}}