last touches

This commit is contained in:
Open-Steps.org 2015-03-01 19:46:21 +01:00
parent 49071fb9d8
commit cde5755238
11 changed files with 184 additions and 108 deletions

View file

@ -5,9 +5,8 @@ home: yes
<div class="content container-fluid">
{% for post in site.posts %} {% if forloop.first != true %}
<!-- TODO parametrize this, no hardcoded numbers -->
{% assign pos = 39 | minus: post.number %}
{% assign post_number = site.posts | size %}
{% assign pos = post_number | minus: post.number %}
<div data-scroll-index="{{pos}}" class="row">
@ -21,19 +20,23 @@ home: yes
{% if post.title %}
<p>{{post.title}}</p>
{% endif %}
{% if post.topics %}
{% if post.location %}
<p><a class="highlight button hvr-sweep-to-top" href={{post.location_website}} target="_blank">{{post.location}}</a></p>
{% endif %}
<p>
<ul>
{% assign tags = (post.topics | split:",") %} {% for tag in tags %}
<li>{{tag}}</li>
{% endfor%}
{% 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>
{% endif %} {% if post.location %}
<p><a class="highlight button hvr-sweep-to-top" href={{post.location_website}} target="_blank">{{post.location}}</a>
</p>
{% endif %}
</div>