scopesessions.org/index.html
2015-03-04 13:07:55 +01:00

86 lines
2.4 KiB
HTML

---
layout: default
home: yes
---
<div class="content container-fluid">
{% for post in site.posts %} {% if forloop.first != true %}
{% assign post_number = site.posts | size %}
{% assign pos = post_number | minus: post.number %}
<div data-scroll-index="{{pos}}" class="row">
<div class="event-date col-md-2 col-md-offset-1">
<a class="button hvr-sweep-to-top" href={{post.url}}>
<h3>#{{post.number}}</h3>
<h4>{{post.date_text}}</h4>
</a>
{% if post.title %}
<p>{{post.title}}</p>
{% endif %}
{% if post.location %}
<p><a class="highlight button hvr-sweep-to-top" href={{post.location_website}} target="_blank">{{post.location}}</a>
{% if post.fb_event_url %}
<a class="highlight button hvr-sweep-to-top" target="_blank" href={{post.fb_event_url}}><i class="fa fa-facebook-square"></i></a>
{% endif %}
</p>
{% endif %}
<p>
<ul>
{% for talk in post.talks %}
{% if talk.topics %}
{% assign tags = (talk.topics | split:",") %}
{% for tag in tags | uniq %}
<li>{{tag}}</li>
{% endfor %}
{% endif %}
{% endfor %}
</ul>
</p>
</div>
<div class="event event-{{post.number}} dark_bg col-md-7">
{% capture talks_number %}{{ post.talks | size }}{% endcapture %} {% capture col_width %}{{ 12 | divided_by:talks_number }}{% endcapture %} {% for talk in post.talks %}
<div class="talk col-md-{{col_width}}">
<div class="artist-media">
{% if {{talk.media_artist_url}} %}
<img src={{talk.media_artist_url}}></img>
{% else %}
<img src="/assets/no_artist_media.png"></img>
{% endif %}
</div>
<div class="talk-detail">
<h4>{{talk.artist}} / {{talk.title}}</h4>
{% if (talk.description | size) > 300 %}
<p>{{talk.description | truncate: 300 }}</p>
{% else %}
<p>{{talk.description}}</p>
{% endif%}
{% if talk.artist_website %}
<a class="button hvr-sweep-to-top" href={{talk.artist_website}} target="_blank">{{talk.artist_website}}</a> {% endif %} {% if talk.video_artist_url %}
<br>
<a class="button hvr-sweep-to-top" href={{talk.video_artist_url}} target="_blank">Artist's Video</a> {% endif %} {% if talk.talk_video_url %}
<br>
<a class="button hvr-sweep-to-top" href={{talk.talk_video_url}} target="_blank">Talk's Video</a> {% endif %}
</div>
</div>
{% endfor %}
</div>
</div>
{% endif %} {% endfor %}
</div>