summaryrefslogtreecommitdiff
path: root/templates/partials/navigation.html.twig
blob: 0c61b1d128cd3ed4af3bbb16ce1efb95c6635741 (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
30
{% if page.parent.parent.url == "/" %}
<div class="links" id="nextprev">
    {% set prevPage = page.prevSibling() %}
    {% 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.nextSibling() %}
    {% 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 %}