From ccbac74c27b83615aec953e69f92f6fb67725293 Mon Sep 17 00:00:00 2001 From: Lukas Ruge <lukeslog@googlemail.com> Date: Mon, 13 Aug 2018 07:04:14 +0200 Subject: [PATCH] fixes for events and events rss --- _config.yml | 2 ++ events.xml | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 94f0e01d..ddb77cc5 100644 --- a/_config.yml +++ b/_config.yml @@ -72,6 +72,8 @@ collections: output: false events: title: events + output: true + permalink: event/:path/ # 6. Jekyll collections settings defaults: diff --git a/events.xml b/events.xml index 9d6685ce..3f461811 100644 --- a/events.xml +++ b/events.xml @@ -18,9 +18,10 @@ layout: null {% capture posttime %}{{event.eventdate | date: '%s'}}{% endcapture %} {% capture nowunix %}{{'now' | date: '%s'}}{% endcapture %} {% assign inthirtydays = nowunix | plus: 2592000 %} + {% assign nowdate = nowunix | plus: 0 %} {% assign postdate = posttime | plus: 0 %} - {% if postdate < inthirtydays %} + {% if postdate < inthirtydays and postdate > nowdate %} {% if counter < 10 %} {% assign counter = counter | plus: 1 %} <item> -- GitLab