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/'
|
link: 'https://www.facebook.com/events/2416889711931362/'
|
||||||
event_data:
|
event_data:
|
||||||
start_datetime: 2019-06-14 17:00:00 +0200
|
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
|
category: music
|
||||||
deltagande_artists:
|
deltagande_artists:
|
||||||
- max_park
|
- 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>
|
<a href="{{ site.baseurl }}/" class="nodecoration"><img src="{{ site.baseurl }}/assets/img/logo%20galleri%20momangen.svg" alt="{{ site.title }}" /></a>
|
||||||
{% if page.url == "/" %}
|
{% if page.url == "/" %}
|
||||||
<div id="poster" class="column">
|
<div id="poster" class="column">
|
||||||
|
{{ site.date }}
|
||||||
|
|
||||||
|
<!-- Begin Up next -->
|
||||||
{% for event in site.events limit: 1 %}
|
{% for event in site.events limit: 1 %}
|
||||||
|
|
||||||
|
{% if site.date <= post.event_data.end_datetime %}
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<p>På gång:</p>
|
<p>På gång:</p>
|
||||||
<a href="cloudcannon:collections/{{ event.path }}" class="editor-link cms-editor-link">Redigera Event</a>
|
<a href="cloudcannon:collections/{{ event.path }}" class="editor-link cms-editor-link">Redigera Event</a>
|
||||||
|
|
@ -42,7 +46,11 @@
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
<!-- end Up next-->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% else %}{% endif %}
|
{% else %}{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue