forked from pirati-web/chrudim.pirati.cz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (38 loc) · 1.22 KB
/
index.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
43
44
45
46
47
48
49
50
51
52
53
54
---
layout: eu
wide: true
category: program
title:
---
</br>
{% include news_bar.html %}
<hr>
<h4>Aktuality</h4>
<!--{% assign posts = (site.posts | where: "category", "aktuality" | sort: 'date') %}-->
{% assign modulo = 0 %}
{% for post in site.categories.aktuality reverse %}
{% if modulo == 0 or forloop.first %}
<div class="row blog">
{% endif %}
<div class="medium-6 columns{% if forloop.last and modulo == '0' %} end{% endif %}">
{% if post.image %} <img src="{{ post.image }}" width="200" height="115"/> {% else %} {{ <img src="/assets/images/aktuality/default.png" width="400" height="229"/> }} {% endif %}
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
{% 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: 15 }}
{% else %}
{{ post.content | strip_html | truncatewords: 15 }}
<a href="{{ post.url }}">pokračování</a>.
</br>
{% endif %}
<br></br>
</div>
{% if modulo == 1 or forloop.last %}
</div>
{% endif %}
{% if modulo == 0 %}
{% assign modulo = 1 %}
{% else %}
{% assign modulo = 0 %}
{% endif %}
{% endfor %}