From adc2cab839312af14e083891f994c6fd7a4ec4bb Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 8 Jul 2020 08:53:33 +0200 Subject: [PATCH] Fix Date error on path/to/news --- _includes/list-blocks | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/_includes/list-blocks b/_includes/list-blocks index 7442c80..7950737 100644 --- a/_includes/list-blocks +++ b/_includes/list-blocks @@ -36,8 +36,11 @@ {% else %} - {% if i.enddate %} + {% if i.enddate %} {% capture meta %}{{ i.startdate | date:"%Y" }} – {{ i.enddate | date:"%Y" }}{% endcapture %} + {% elsif i.eventdate %} + {% assign date_t = i.date | date_to_string %} + {% capture meta %}{{ date_t }}{% endcapture %} {% else %} {% capture meta %}Since {{ i.startdate | date:"%Y" }}{% endcapture %} {% endif %} -- GitLab