Limited number of sidebar events to the next 3
the build was successful Details

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
Jim Martens 2018-11-24 11:01:18 +01:00
parent 607079b53f
commit a9562b816f
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<ul class="list-group list-group-flush">
{% capture now-unix %}{{ 'now' | date: '%s' | divided_by: 86400 }}{% endcapture %}
{% assign events = site.events | sort:'start_date' %}
{% for event in events %}
{% for event in events limit:3 %}
{% capture event-time %}{{ event.start_date | date: '%s' | divided_by: 86400 }}{% endcapture %}
{% if now-unix <= event-time %}
<li class="list-group-item" itemscope itemtype="http://schema.org/Event">