-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (31 loc) · 1.12 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
---
layout: default
title: Home
---
<header class="clean" style="min-height: 350px; background-image: url({{ site.cover }});">
{% include top.html %}
<div id="home-title">
<a href="{{ site.url }}">
<div class="site-icon-page">
<h1>{{ site.title}}</h1>
<div class="title-description">{{ site.description }}</div>
</div>
</a>
</div>
</header>
<div id="post-list">
{% assign sorted_pages = (site.posts | where: "category", "candidate" | sort: 'number') %}
{% for page in sorted_pages %}
{% assign filename = page.url | replace_first: '/', '' | replace: '/', '-' | replace: '.html', '' %}
{% if page.image %}
<img src="/media/candidates/thumbnails/{{ filename }}.jpg" class="candidate" title="{{ page.title }}">
{% endif %}
<div class="post-text">
{% if page.number %} <div class="circle-text">{{ page.number }}.</div> místo na kandidátce {% endif %}
<h1><a href="{{ page.url }}">{{ page.title }}</a></h1>
<p class="post-description">{{ page.content | strip_html | truncatewords: 30 }}</p>
</div>
<br>
{% endfor %}
</div>
{% include foot.html %}