_includes/date.html in jekyll-theme-parallelism-0.1.5 vs _includes/date.html in jekyll-theme-parallelism-0.1.6
- old
+ new
@@ -1,15 +1,16 @@
-{% assign day = include.date | date: "%-d" %}
-{% assign month = include.date | date: "%-m" %}
-{% if page.lang == "en" %}
+{%- assign day = include.date | date: "%-d" -%}
+{%- assign month = include.date | date: "%-m" -%}
+{%- if page.lang == "en" -%}
{{ include.date | date: "%B" }} {{ day }}, {{ include.date | date: "%Y" }}
-{% elsif page.lang == "fr" %}
- {% if day == "1" %}
+{%- elsif page.lang == "fr" -%}
+ {%- if day == "1" -%}
{{ day }}<sup>er</sup>
- {% else %} {{ day }}
- {% endif %}
- {% case month %}
+ {%- else -%}
+ {{ day }}
+ {%- endif -%}
+ {%- case month -%}
{% when '1' %}janvier
{% when '2' %}février
{% when '3' %}mars
{% when '4' %}avril
{% when '5' %}mai
@@ -18,7 +19,8 @@
{% when '8' %}août
{% when '9' %}septembre
{% when '10' %}octobre
{% when '11' %}novembre
{% when '12' %}décembre
- {% endcase %} {{ include.date | date: "%Y" }}
-{% endif %}
\ No newline at end of file
+ {%- endcase -%}
+ {{ include.date | date: "%Y" }}
+{%- endif -%}