-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
33 lines (29 loc) · 1.03 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
---
layout: default
title: Home
tagline: Essays and blog posts
permalink: /
---
{% for post in paginator.posts %}
<h3><small>{{ post.date | date: "%B %e, %Y" }}</small></h3>
<h1><a href='{{post.url}}'>{{post.title}}</a> <small>{{ post.excerpt }}</small></h1>
{{ post.content }}
<hr/>
{% endfor %}
<div class="pagination pagination-centered">
<ul>
{% if paginator.previous_page %}
<li class="prev"><a href="{% if paginator.page > 2 %}/page{{paginator.previous_page}}{% else %}/{% endif %}">←</a></li>
{% else %}
<li class="prev disabled"><a href="#">←</a></li>
{% endif %}
{% for post in site.posts limit:paginator.total_pages %}
<li {% if forloop.index == paginator.page %}class="active"{% endif %}><a href="{% if forloop.index > 1 %}/page{{forloop.index}}{% else %}/{% endif %}">{{forloop.index}}</a></li>
{% endfor %}
{% if paginator.next_page %}
<li class="next"><a href="/page{{paginator.next_page}}">→</a></li>
{% else %}
<li class="next disabled"><a href="#">→</a></li>
{% endif %}
</ul>
</div>