Skip to content
Snippets Groups Projects
Unverified Commit ccbac74c authored by Lukas Ruge's avatar Lukas Ruge
Browse files

fixes for events and events rss

parent 36ac6afe
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -72,6 +72,8 @@ collections: ...@@ -72,6 +72,8 @@ collections:
output: false output: false
events: events:
title: events title: events
output: true
permalink: event/:path/
# 6. Jekyll collections settings # 6. Jekyll collections settings
defaults: defaults:
......
...@@ -18,9 +18,10 @@ layout: null ...@@ -18,9 +18,10 @@ layout: null
{% capture posttime %}{{event.eventdate | date: '%s'}}{% endcapture %} {% capture posttime %}{{event.eventdate | date: '%s'}}{% endcapture %}
{% capture nowunix %}{{'now' | date: '%s'}}{% endcapture %} {% capture nowunix %}{{'now' | date: '%s'}}{% endcapture %}
{% assign inthirtydays = nowunix | plus: 2592000 %} {% assign inthirtydays = nowunix | plus: 2592000 %}
{% assign nowdate = nowunix | plus: 0 %}
{% assign postdate = posttime | plus: 0 %} {% assign postdate = posttime | plus: 0 %}
{% if postdate < inthirtydays %} {% if postdate < inthirtydays and postdate > nowdate %}
{% if counter < 10 %} {% if counter < 10 %}
{% assign counter = counter | plus: 1 %} {% assign counter = counter | plus: 1 %}
<item> <item>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment