-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
index.html
56 lines (48 loc) · 1.33 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
---
layout: default
redirect_from:
- /archive/
- /archive
- /archive/1/
- /archive/1
---
{% unless paginator.previous_page %}
{% comment %}
Newest posts in a unique, Medium-like layout on the first page
{% endcomment %}
<section class="latest">
{% assign post=paginator.posts.first %}
{% include featured.html post=post %}
{% assign post=paginator.posts[1] %}
{% include featured.html post=post %}
{% assign post=paginator.posts[2] %}
{% include featured.html post=post %}
{% assign post=paginator.posts[3] %}
{% include featured.html post=post %}
</section>
{% endunless %}
<section class="more">
{% if paginator.previous_page %}
<h2>Archive Page {{ paginator.page }}</h2>
{% for post in paginator.posts %}
{% unless post.hidden %}
{% include featured.html post=post %}
{% endunless %}
{% endfor %}
{% else %}
<h2>More Stories</h2>
{% for post in paginator.posts offset: 4 %}
{% unless post.hidden %}
{% include featured.html post=post %}
{% endunless %}
{% endfor %}
{% endif %}
</section>
<nav class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}" class="previous">Newer</a>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}" class="next">Older</a>
{% endif %}
</nav>