diff --git a/_config.yml b/_config.yml index 94f0e01dbef2af22be2c2a199cd277d06c059364..ddb77cc516ac292d8a9480a0b617847205b63911 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 9d6685ce97dbfe305fa3d545762fa536efd76e11..3f461811f9257fe4eed18eaae3ae9bffa90cef9f 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>