diff options
Diffstat (limited to 'templates/partials')
-rw-r--r-- | templates/partials/header.html.twig | 6 | ||||
-rw-r--r-- | templates/partials/navigation.html.twig | 5 |
2 files changed, 5 insertions, 6 deletions
diff --git a/templates/partials/header.html.twig b/templates/partials/header.html.twig index 7da672d..19fa2ae 100644 --- a/templates/partials/header.html.twig +++ b/templates/partials/header.html.twig @@ -1,10 +1,10 @@ <div class="header"> <div id="left"> {% if page.url != "/" %} - <a class="anim3" href="{{ page.parent.url }}"> + <a class="anim0" href="{{ page.parent.url }}"> <div class="roundedButton"> - <span class="icon">arrow_back</span> - <span>Back</span> + <span class="icon">arrow_upward</span> + <span>Up</span> </div> </a> {% else %} diff --git a/templates/partials/navigation.html.twig b/templates/partials/navigation.html.twig index 0c61b1d..46a0c45 100644 --- a/templates/partials/navigation.html.twig +++ b/templates/partials/navigation.html.twig @@ -1,7 +1,6 @@ - {% if page.parent.parent.url == "/" %} <div class="links" id="nextprev"> - {% set prevPage = page.prevSibling() %} + {% 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"> @@ -14,7 +13,7 @@ </a> {% endif %} - {% set nextPage = page.nextSibling() %} + {% 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"> |