-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (32 loc) · 1.51 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
---
layout: default
---
<div class="container post-feed">
{% for post in paginator.posts %}
<div class="blog-post">
<h1><a class="kappa" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h1>
<p class="blog-post-meta">{{ post.date | date: "%b %-d, %Y" }} {% if post.author %}от <a href="https://github.com/{{post.author}}" class="blog-post-author">{{post.author}}</a>{% endif %}</p>
<p class="post-excerpt">
{{ post.excerpt | strip_html | strip_newlines }}
</p>
<p class="post-link">
<a href="{{ post.url | prepend: site.baseurl }}">Читать →</a>
</p>
</div>
{% endfor %}
{% if paginator.total_pages > 1 %}
<ul class="pagination justify-content-center">
{% if paginator.previous_page %}
<li class="page-item"><a class="page-link" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: "//", "/" }}">← Назад</a></li>
{% else %}
<li class="page-item disabled"><a class="page-link" href="#">← Назад</a></li>
{% endif %}
{% if paginator.next_page %}
<li class="page-item"><a class="page-link" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: "//", "/" }}">Вперёд →</a></li>
{% else %}
<li class="page-item disabled"><a class="page-link" href="#">Вперёд →</a></li>
{% endif %}
</div>
</div>
{% endif %}
</div>