past event sorting
This commit is contained in:
parent
95b3506eea
commit
40ac3a4b9f
1 changed files with 3 additions and 4 deletions
|
|
@ -2,17 +2,16 @@
|
|||
{% capture now -%}
|
||||
{{ site.time | date: '%s' }}
|
||||
{%- endcapture %}
|
||||
{% for event in site.events %}
|
||||
{% assign events = site.events | reverse %}
|
||||
{% for event in events %}
|
||||
|
||||
{% capture endtime -%}
|
||||
{{ event.event_data.end_datetime | date: '%s' }}
|
||||
{%- endcapture %}
|
||||
|
||||
{% if now >= endtime %}
|
||||
|
||||
<div>
|
||||
<a href="{{ event.url }}" style="border:none;">
|
||||
<div class="flyer" style="background-image:url({{ event.image }});"></div>
|
||||
</a>
|
||||
<p>{{ event.event_data.start_datetime | date: '%Y-%m-%d' }}<br />
|
||||
<a href="{{ event.url }}"><strong>{{ event.title }}</strong></a>
|
||||
</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue