dividing the section
This commit is contained in:
parent
6d0f597926
commit
b637c84c94
2 changed files with 28 additions and 26 deletions
27
_includes/past-events.html
Normal file
27
_includes/past-events.html
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<h2>Förflutna events</h2>
|
||||
|
||||
{% 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 />
|
||||
<h3>
|
||||
<a href="{{ event.url }}" class="cta">{{ event.event_data.start_datetime | date: '%Y-%m-%d' }}</a>
|
||||
</h3>
|
||||
<h3>{{ event.title }}</h3>
|
||||
<br />
|
||||
<hr />
|
||||
<br />
|
||||
|
||||
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue