blob: 46a0c45e9277e32e10010ed7e94af394307a44db (
plain) (
blame)
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
|
{% if page.parent.parent.url == "/" %}
<div class="links" id="nextprev">
{% set prevPage = page.parent.children().nth(page.parent.children().currentPosition(page.path)-1) %}
{% if prevPage %}
<a class="anim2" id="prev" href="{{ prevPage.url }}">
<div class="roundedButton">
<span class="icon">arrow_back</span>
<div class="stack">
<span>Previous</span>
<span>{{ prevPage.title }}</span>
</div>
</div>
</a>
{% endif %}
{% set nextPage = page.parent.children().nth(page.parent.children().currentPosition(page.path)+1) %}
{% if nextPage %}
<a class="anim3" id="next" href="{{ nextPage.url }}">
<div class="roundedButton">
<span class="icon">arrow_forward</span>
<div class="stack">
<span>Next</span>
<span>{{ nextPage.title }}</span>
</div>
</div>
</a>
{% endif %}
</div>
{% endif %}
|