-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (48 loc) · 1.89 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
---
layout: default
title: Home
---
<div class="posts">
{% comment %} {% for post in paginator.posts %}
<article class="post">
<h1 class="post-title">
<a href="{{ site.baseurl }}{{ post.url }}">
{{ post.title }}
</a>
</h1>
<time datetime="{{ post.date | date_to_xmlschema }}" class="post-date">{{ post.date | date_to_string }}</time>
{{ post.content }}
</article>
{% endfor %} {% endcomment %} {% for post in paginator.posts %}
<article class="post">
<h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
<!-- <div class="entry">
{{ post.excerpt }}
</div>
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Читать Далее</a> -->
<div class="entry">{{ post.content }}</div>
</article>
{% endfor %}
</div>
<div class="pagination">
{% if paginator.next_page %}
<a class="pagination-item older" href="{{ paginator.next_page_path | prepend: site.baseurl }}">Старіші пости</a>
{% else %}
<span class="pagination-item older">Старіші пости</span>
{% endif %}
{% if paginator.previous_page %}
<a class="pagination-item newer" href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Новіші пости</a>
{% else %}
<span class="pagination-item newer">Новіші пости</span>
{% endif %}
</div>
<!-- <div class="pagination">
<h4>
{% if paginator.previous_page %}
<a href="{% if paginator.previous_page == 1%}/{% else %}/page{{ paginator.previous_page }}{% endif %}" class="previous"><i class="fa fa-arrow-left" aria-hidden="true"></i></a> {% endif %}
<span class="page_number">Сторінка {{ paginator.page }} з {{ paginator.total_pages }}</span> {% if paginator.next_page
%}
<a href="/page{{ paginator.next_page }}" class="next"><i class="fa fa-arrow-right" aria-hidden="true"></i></a> {% endif
%}
</h4>
</div> -->