pas events
This commit is contained in:
parent
d2e85393de
commit
ce4f72b3c8
2 changed files with 14 additions and 6 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -176,3 +176,9 @@ a:active {
|
||||||
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;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue