-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
70 lines (58 loc) · 1.88 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
layout: default
---
{% include series.liquid posts=paginator.posts %}
{% unless paginator.posts %}
<header><h1 class="title">Nothing Found</h1></header>
<p>
It seems we can’t find what you’re looking for.
{% comment %} Perhaps searching can help. {% endcomment %}
</p>
{% endunless %}
{% if paginator.total_pages > 1 %}
<nav class="pagination">
{% if paginator.page > 1 %}
<a rel="start" href="{{ site.baseurl }}/">1</a>
{% endif %}
{% if paginator.previous_page > 2 %}
<span>…</span>
{% endif %}
{% if paginator.previous_page > 1 %}
<a rel="prev" href="{{ site.baseurl }}{{ paginator.previous_page_path }}">{{ paginator.previous_page }}</a>
{% endif %}
<strong>{{ paginator.page }}</strong>
{% if paginator.next_page %}
<a rel="next" href="{{ site.baseurl }}{{ paginator.next_page_path }}">{{ paginator.next_page }}</a>
{% assign omitted = paginator.next_page | plus: 1 %}
{% if omitted < paginator.total_pages %}
<span>…</span>
{% endif %}
{% if paginator.next_page < paginator.total_pages %}
<a href="{{ site.baseurl }}/page{{ paginator.total_pages }}">{{ paginator.total_pages }}</a>
{% endif %}
{% endif %}
{% if paginator.previous_page %}
<a class="prev" rel="prev" href="{{ site.baseurl }}{{ paginator.previous_page_path }}"></a>
{% else %}
<span class="prev"></span>
{% endif %}
{% if paginator.next_page %}
<a class="next" rel="next" href="{{ site.baseurl }}{{ paginator.next_page_path }}"></a>
{% else %}
<span class="next"></span>
{% endif %}
</nav>
{% if paginator.page == 1 %}
<template id="loader">
<link rel="stylesheet" href="loader.css">
<button type="button" id="load">Older posts</button>
</template>
<script type="module">
import load from "./load.js";
load({{ paginator.total_pages }});
</script>
{% endif %}
{% endif %}
{% comment %}
vim: filetype=liquid
{% endcomment %}