Limited number of sidebar events to the next 3
the build was successful
Details
the build was successful
Details
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
parent
607079b53f
commit
a9562b816f
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue