-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
44 lines (43 loc) · 1.34 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
---
layout: default
title: My card game
---
<h1>{{ page.title }}</h1>
<div>
<a href="/2018/07/26/card-game.html">Why a card game?</a>
<span class="right"><a href="/decks/">View cards by deck</a></span>
</div>
<div id="items">
{% for post in paginator.posts %}
{% include card.html %}
{% endfor %}
</div>
<div class="pagination">
<span class="previous_page">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path }}">previous page</a>
{% else %}
<span class="no-link">previous page</span>
{% endif %}
</span>
<span class="pages">
{% for page in (1..paginator.total_pages) %}
<span class="page_number">
{% if page == paginator.page %}
{{ page }}
{% elsif page == 1 %}
<a href="/" aria-label="Page 1">{{ page }}</a>
{% else %}
<a href="{{ site.paginate_path | relative_url | replace: ':num', page }}" aria-label="Page {{ page }}">{{ page }}</a>
{% endif %}
</span>
{% endfor %}
</span>
<span class="next_page">
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path }}">next page</a>
{% else %}
<span class="no-link">next page</span>
{% endif %}
</span>
</div>