making upcoming session more visible

added contents for #46
This commit is contained in:
Open-Steps.org 2015-09-01 21:52:43 +02:00
parent c0c9b4bcfc
commit d601d994fe
81 changed files with 39621 additions and 5099 deletions

View file

@ -2,15 +2,91 @@
layout: default
home: yes
---
<div class="content container-fluid">
{% assign post_number = site.posts | size %}
{% assign first_post = site.posts | first %}
<section id="upcoming">
<div class="content container-fluid">
<div data-scroll-index="{{post_number}}" class="row">
<div class="transp-bg padded event-info col-sm-2">
<a class="event-date padded button hvr-sweep-to-top" href={{first_post.url}}>
<h2>Upcoming session</h2>
<h3>#{{first_post.number}}</h3>
<h4>{{first_post.date_text}}</h4>
{% if first_post.title %}
<p>{{first_post.title}}</p>
{% endif %}
<div class="padded_vert">
<ul>
{% for talk in first_post.talks %}
{% if talk.topics %}
{% assign tags = (talk.topics | split:",") %}
{% for tag in tags | uniq %}
<li>{{tag}}</li>
{% endfor %}
{% endif %}
{% endfor %}
</ul>
</div>
</a>
</div>
<div class="event event-{{first_post.number}} dark_bg col-sm-10">
{% capture talks_number %}{{ first_post.talks | size }}{% endcapture %} {% capture col_width %}{{ 12 | divided_by:talks_number }}{% endcapture %} {% for talk in first_post.talks %}
<div class="talk col-sm-{{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"><i class="fa fa-link"></i> Website</a>
{% endif %}
{% if talk.video_artist_url %}
<br>
<a class="button hvr-sweep-to-top" href={{talk.video_artist_url}} target="_blank"><i class="fa fa-video-camera"></i> Artist video</a>
{% endif %}
{% if talk.talk_video_url %}
<br>
<a class="button hvr-sweep-to-top" href={{talk.talk_video_url}} target="_blank"><i class="fa fa-video-camera"></i> Talk at Scope</a>
{% endif %}
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</section>
<div class="content container-fluid">
<div class="row center">
<h1>Past sessions</h1>
</div>
</dvi>
<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="transp-bg padded event-info col-md-2 col-md-offset-1">
<div class="transp-bg padded event-info col-sm-2 col-sm-offset-1">
<a class="event-date padded button hvr-sweep-to-top" href={{post.url}}>
<h3>#{{post.number}}</h3>
@ -46,11 +122,11 @@ home: yes
</div>
<div class="event event-{{post.number}} dark_bg col-md-7">
<div class="event event-{{post.number}} dark_bg col-sm-8">
{% 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="talk col-sm-{{col_width}}">
<div class="artist-media">
{% if {{talk.media_artist_url}} %}