title | layout |
---|---|
Past Events |
default |
{% assign sorted_events = (site.events | sort: 'expires' | reverse) %}
-
{% for event in sorted_events %}
{%- if event.repeated == false -%}
{%- capture nowunix -%}{{'now' | date: '%s'}}{%- endcapture -%}
{%- capture expires -%}{{event.expires | date: '%s'}}{%- endcapture -%}
{%- if nowunix > expires -%}
{{ event.event_date | event_date: date_format }}
{{ event.location | escape }}
{%- endif -%}
{%- endif -%}
{% endfor %}