/
index.html
39 lines (35 loc) · 1.23 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
---
layout: default
---
<!-- Post List -->
<ul id="post-list">
{% for post in paginator.posts %}
<li class="post">
<header>
<h1 class="title"><a href="{% if post.link %}{{post.link}}{% else %}{{ post.url }}{% endif %}">{{ post.title }}</a>{% if post.link %}<span class="link-arrow"> →</span>{% endif %}</h1>
<p class="meta">{{ post.date | date:"%B %d, %Y" }} <a href="{{ post.url }}"># permalink</a></p>
</header>
<article>
{{ post.content }}
</article>
</li>
{% endfor %}
</ul>
<!-- Pagination -->
<div class="paginatebox">
{% if paginator.total_pages > 1 %}
<div class="paginate text-center">
{% if paginator.previous_page %}
<a rel="prev" href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« Prev</a>
{% else %}
<span class="meta">« Prev</span>
{% endif %}
<span class="meta">Page {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a rel="next" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next »</a>
{% else %}
<span class="meta">Next »</span>
{% endif %}
</div>
{% endif %}
</div>