-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
34 lines (26 loc) · 1.01 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
---
layout: default
---
<!--{%include search.html%}
-->
<div class="content">
{% for post in paginator.posts %}
<article>
{% if post.poster %}
<a class="poster" style="background: url({{post.poster}});" href="{{ post.url | prepend: site.baseurl }}"></a>
{% else %}
<a class="poster" href="{{ post.url | prepend: site.baseurl }}"></a>
{% endif %}
<div class="post-meta">
{% for cat in post.category %}
<a class="post-category" href="{{site.baseurl}}/categories/#{{cat}}">{{ cat }}</a>
{% endfor %}
<p class="post-date">{{ post. date | date: "%d-%m-%Y"}} </p>
</div>
<div class="hr"></div>
<h2 ><a class="post-title" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h2>
<p class="post-excerpt">{{ post.excerpt | strip_html | truncate: 150}}</p>
<a class="btn-flat" href="{{ post.url | prepend: site.baseurl }}">Читать</a>
</article>
{% endfor %}
</div>