summaryrefslogtreecommitdiff
path: root/templates/partials/navigation.html.twig
blob: f1f62233f4c02a00553281e701d8336eb8d7c2fc (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="nextback">
    {% set prevPage = page.adjacentSibling(-1) %}
    {% if prevPage %}
    <a class="anim2" id="next" 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.adjacentSibling(1) %}
    {% if nextPage %}
    <a class="anim3" id="back" 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 %}