momangen/_includes/hero.html
Set Hallstrom c3ef4542f8 fixed!
2019-05-19 01:47:13 +02:00

27 lines
No EOL
1.2 KiB
HTML

<!-- BEGIN hero.html -->
<div id="banner" style="{% if page.url == "/" %}height:100%"{% else %}height:30%" {% endif %}">
<canvas style="display:none" id="canvas" width="285" height="285"></canvas>
<canvas style="display:none" id="canvas3" width="570" height="570"></canvas>
<canvas id="canvas2" width="570" height="570">*** THIS BROWSER DOES NOT SUPPORT THE CANVAS ELEMENT ***</canvas>
<div class="hero">
<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">
{% for event in site.events limit: 1 %}
<div>
<p>På gång:</p>
<h2><a href="{{ event.url }}" class="nodecoration">{{ event.title }}</a></h2>
<p>{{ event.start_datetime | date: "%Y-%m-%d"}} {{ event.start_datetime | date: "%R"}}<br />
Typ av konst: {{ event.category }}</p>
<h3>{{ event.description | truncatewords: 10 }} <span style="font-family:'avant', 'Helvetica Neue', Helvetica, Arial, sans-serif"><a href="{{ event.url }}">Läs mer</a></span></h3>
</div>
{% endfor %}
</div>
{% else %}{% endif %}
</div>
</div>
<!-- END hero.html -->