forked from pirati-web/chrudim.pirati.cz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlide.html
42 lines (36 loc) · 1.04 KB
/
lide.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
layout: eu
wide: true
category: program
title: Lidé
---
{% assign posts = (site.posts | where: "category", "lide" | sort: 'date') %}
{% assign modulo = 0 %}
{% for post in posts %}
{% if modulo == 0 or forloop.first %}
<div class="row blog">
{% endif %}
<div class="medium-6 columns{% if forloop.last and modulo == '0' %} end{% endif %}">
<img src="{{ post.image }}" width="100" height="123" align="left"/>
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
<!--{% if post.autor %} <span class="radius label">{{ post.autor}}</span> {% endif %}-->
{% if post.date %} <span class="radius secondary label">{{ post.date | date: "%d.%m.%Y" }}</span> {% endif %}
{% if post.excerpt %}{{ post.excerpt | truncatewords: 30 }}
{% else %}
<!--{{ post.content | strip_html | truncatewords: 30 }}-->
{% endif %}
<a href="{{ post.url }}" >O Pirátovi</a>.
</div>
{% if modulo == 1 or forloop.last %}
</div>
{% endif %}
{% if modulo == 0 %}
</br>
</br>
</br>
{% assign modulo = 1 %}
{% else %}
{% assign modulo = 0 %}
</br>
{% endif %}
{% endfor %}