conditional hero
This commit is contained in:
parent
d5cc91e57e
commit
32aff459ac
2 changed files with 9 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ image: /images/events/momagiskt.jpg
|
|||
link: 'https://www.facebook.com/events/2416889711931362/'
|
||||
event_data:
|
||||
start_datetime: 2019-06-14 17:00:00 +0200
|
||||
end_datetime: 2019-06-14 23:00:00 +0200
|
||||
end_datetime: 2019-06-16 23:00:00 +0200
|
||||
category: music
|
||||
deltagande_artists:
|
||||
- max_park
|
||||
|
|
|
|||
|
|
@ -7,9 +7,13 @@
|
|||
<a href="{{ site.baseurl }}/" class="nodecoration"><img src="{{ site.baseurl }}/assets/img/logo%20galleri%20momangen.svg" alt="{{ site.title }}" /></a>
|
||||
{% if page.url == "/" %}
|
||||
<div id="poster" class="column">
|
||||
{{ site.date }}
|
||||
|
||||
<!-- Begin Up next -->
|
||||
{% for event in site.events limit: 1 %}
|
||||
|
||||
{% if site.date <= post.event_data.end_datetime %}
|
||||
|
||||
<div>
|
||||
<p>På gång:</p>
|
||||
<a href="cloudcannon:collections/{{ event.path }}" class="editor-link cms-editor-link">Redigera Event</a>
|
||||
|
|
@ -42,7 +46,11 @@
|
|||
|
||||
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<!-- end Up next-->
|
||||
|
||||
</div>
|
||||
{% else %}{% endif %}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue