Commit adc2cab8 authored by tron's avatar tron

Fix Date error on path/to/news

parent 59450ceb
Pipeline #24697 passed with stage
in 13 minutes and 44 seconds
...@@ -36,8 +36,11 @@ ...@@ -36,8 +36,11 @@
{% else %} {% else %}
<!-- Change Meta --> <!-- Change Meta -->
{% if i.enddate %} {% if i.enddate %}
{% capture meta %}{{ i.startdate | date:"%Y" }} &ndash; {{ i.enddate | date:"%Y" }}{% endcapture %} {% capture meta %}{{ i.startdate | date:"%Y" }} &ndash; {{ i.enddate | date:"%Y" }}{% endcapture %}
{% elsif i.eventdate %}
{% assign date_t = i.date | date_to_string %}
{% capture meta %}{{ date_t }}{% endcapture %}
{% else %} {% else %}
{% capture meta %}Since {{ i.startdate | date:"%Y" }}{% endcapture %} {% capture meta %}Since {{ i.startdate | date:"%Y" }}{% endcapture %}
{% endif %} {% endif %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment