-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·79 lines (77 loc) · 2.82 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
layout: default
redirect_from:
- /web/Fotogalerie
- /gallery
- /web/Hlavní_strana
- /img/
---
<div class="container">
<div class="row">
{% if site.posts.size > 0 %}
{%- for post in paginator.posts -%}
{% if forloop.index <= 1 %}
<div class="col col-12">
<article class="article-first">
<div class="article-image-first" style="background-image: url({{"/img/" | prepend: site.baseurl | append : post.image}})">
<div class="article-content-first">
<div class="article-tag">
{% if post.tags.size >= 1 %}
{% for tag in post.tags %}
<a href="{{ site.baseurl }}/tags#{{tag}}" class="tag">{{ tag }}</a>
{% endfor %}
{% else %} {% endif %}
</div>
<h1 class="article-title"><a href="{{ post.url | prepend: site.baseurl }}">{{post.title}}</a></h1>
<p class="article-excerpt">{% if post.description %}{{ post.description | strip_html | truncate: 163 }}{% else %}{{ post.content | strip_html | truncate: 163 }}{% endif %}</p>
<a href="{{ post.url | prepend: site.baseurl }}" class="button read-more">Read More</a>
</div>
</div>
</article> <!-- /.article-first -->
</div>
{% endif %}
{% endfor %}
{% endif %}
</div>
</div>
<div class="container">
<div class="row">
<div class="col col-12 col-t-8">
<div class="row">
{%- for post in paginator.posts offset: 1 -%}
<article class="article col col-12 col-t-6">
<div class="article-box">
<div class="article-head">
<a href="{{ post.url | prepend: site.baseurl }}" style="background-image: url({{'/img/' | prepend: site.baseurl | append : post.image}})" class="article-image">
<img src="{{'/img/' | prepend: site.baseurl | append : post.image}}" alt="{{ filename }}">
</a>
</div>
<div class="article-content">
<div class="article-info">
<div class="article-date">
<span class="date"><time datetime="{{ post.date | date_to_xmlschema }}">{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}{{ post.date | date: date_format }}</time></span>
</div>
<div class="article-tag">
{% if post.tags.size >= 1 %}
{% for tag in post.tags %}
<a href="{{ site.baseurl }}/tags#{{tag}}" class="tag">{{ tag }}</a>
{% endfor %}
{% else %} {% endif %}
</div>
</div>
<h2 class="article-title">
<a href="{{ post.url | prepend: site.baseurl }}">{{post.title}}</a>
</h2>
<p class="article-excerpt">{% if post.description %}{{ post.description | strip_html | truncate: 135 }}{% else %}{{ post.content | strip_html | truncate: 135 }}{% endif %}</p>
</div>
</div>
</article> <!-- /.article -->
{% endfor %}
</div>
{% include pagination.html %}
</div>
<div class="col col-12 col-t-4">
{% include sidebar.html %}
</div>
</div>
</div>