  <h3>Förflutna events</h3>

  {% capture now -%}{{ site.time | date: '%s' }}{%- endcapture %}
  {% for event in site.events %}


  {% capture endtime -%}
  {{ event.event_data.end_datetime | date: '%s' }}
  {%- endcapture %}


  {% if now >= endtime %}
  <br />
  <h4>
    <a href="{{ event.url }}" class="cta">{{ event.event_data.start_datetime | date: '%Y-%m-%d' }}</a>
  </h4>
  <h4>{{ event.title }}</h4>
  <br />
  <hr />
  <br />



  {% endif %}

  {% endfor %}
  