-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
35 lines (32 loc) · 944 Bytes
/
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
---
<ul class="post-list">
{% for post in paginator.posts %}
<li class="post">
<div class="post-date">
<span>{{ post.date | date_to_string }}</span>
</div>
<div class="post-title">
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
</div>
<div class="post-content">
{{ post.content }}
</div>
</li>
{% endfor %}
</ul>
<!-- Pagination links -->
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="previous">previous</a>
{% else %}
<span class="previous">previous</span>
{% endif %}
<span class="page_number ">page: <strong>{{ paginator.page }}</strong> of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="next">Next</a>
{% else %}
<span class="next ">next</span>
{% endif %}
</div>