-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (49 loc) · 1.47 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: page
---
{% for post in paginator.posts %}
<h3 class="post-title">
<a href="{{site.url | append: post.url }}">
{{ post.title }}
</a>
</h3>
<div class="post-meta">
<div class="post-time">
<i class="fa fa-calendar"></i>
<time>{{ post.date | date_to_string }}</time>
</div>
<ul>
{% for tag in post.tags %}
<li><a href="{{ site.url | append: '/tag/' | append: tag }}">{{ tag }}</a></li>
{% endfor %}
</ul>
</div>
<div class="post-descr">
<p>
{{ post.description }}
</p>
</div>
{% endfor %}
<div class="post-footer">
<div class="column-full">
{% if paginator.total_pages > 1 %}
<div class="pagination dark">
{% if paginator.previous_page %}
<a class="page" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}"><</a>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<a class="page active">{{ page }}</a>
{% elsif page == 1 %}
<a class="page" href="{{ site.url }}">{{ page }}</a>
{% else %}
<a class="page" href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a class="page" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">></a>
{% endif %}
</div>
{% endif %}
</div>
</div>