pas events

This commit is contained in:
Set Sakrecoer 2019-06-18 15:30:17 +02:00
parent d2e85393de
commit ce4f72b3c8
2 changed files with 14 additions and 6 deletions

View file

@ -1,19 +1,21 @@
<h3>Förflutna events</h3> <h3>Förflutna events</h3>
{% capture now -%} {% capture now -%}
{{ site.time | date: '%s' }} {{ site.time | date: '%s' }}
{%- endcapture %} {%- endcapture %}
{% for event in site.events %} {% for event in site.events %}
{% capture endtime -%} {% capture endtime -%}
{{ event.event_data.end_datetime | date: '%s' }} {{ event.event_data.end_datetime | date: '%s' }}
{%- endcapture %} {%- endcapture %}
{% if now >= endtime %} {% if now >= endtime %}
<div> <div>
<a href="{{ event.url }}"><img src="{{ event.image }}" width="30%" /></a> <a href="{{ event.url }}" style="border:none;">
<h4>{{ event.event_data.start_datetime | date: '%Y-%m-%d' }}<br /> <div class="flyer" style="background-image:url({{ event.image }});"></div>
<a href="{{ event.url }}">{{ event.title }}</a> </a>
</h4> <p>{{ event.event_data.start_datetime | date: '%Y-%m-%d' }}<br />
<a href="{{ event.url }}"><strong>{{ event.title }}</strong></a>
</p>
<br /> <br />
</div> </div>

View file

@ -175,4 +175,10 @@ a:active {
line-height: 18px; line-height: 18px;
opacity: 1; opacity: 1;
background: rgba(255, 255, 255, 0.5) url('/assets/img/bg.png'); background: rgba(255, 255, 255, 0.5) url('/assets/img/bg.png');
}
.flyer {
background-size: cover;
background-position: center;
width: 150px;
height: 150px;
} }