-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
51 lines (50 loc) · 1.97 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
---
layout: default
---
<!-- Posts -->
{% for post in paginator.posts %}
{% assign author = site.data.authors[post.author] %}
<article class="box post post-excerpt">
<header>
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
{% if post.subtitle %}
<p>{{ post.subtitle }}</p>
{% else if author %}
<p>by {{ author.display_name }}</p>
{% endif %}
</header>
<div class="info">
<span class="date"><span class="month">{{ post.date | date:"%B" | slice: 0, 3 }}<span>{{ post.date | date:"%B" | slice: -2, 10 }}</span></span> <span class="day">{{ post.date | date:"%d" }}</span><span class="year">, {{ post.date | date:"%Y" }}</span></span>
<!--
<ul class="stats">
<li><a href="#" class="icon fa-comment">16</a></li>
<li><a href="#" class="icon fa-heart">32</a></li>
<li><a href="#" class="icon fa-twitter">64</a></li>
<li><a href="#" class="icon fa-facebook">128</a></li>
</ul>
-->
</div>
{{ post.excerpt }}
</article>
{% endfor %}
<!-- Pagination -->
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="previous button">Previous</a>
{% endif %}
<div class="pages">
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<span>{{ page }}</span>
{% elsif page == 1 %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>
{% else %}
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
{% endif %}
{% endfor %}
<!-- <span>…</span> -->
</div>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="next button">Next</a>
{% endif %}
</div>