File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 11{% extends ' partials/base.html.twig' %}
22{% set blog = page.find (header_var(' blog_url' )| defined(theme_var(' blog-page' ))) %}
3+ {% set pageCollection = page .parent .children () %}
34
45{% block body %}
56<section class =" container post" >
3637 {% if theme_config .post .navigation %}
3738 <footer class =" page-footer" >
3839 <div >
39- {% if not page .isLast %}
40- <div class =" float-left" ><i class =" far fa-hand-point-left" ></i > <a href =" {{ page .prevSibling .url }}" >Previous Article</a ></div >
40+ {% if not pageCollection.isLast (page .path ) %}
41+ <div class =" float-left" >
42+ <i class =" far fa-hand-point-left" ></i > <a href =" {{ pageCollection.prevSibling (page .path ).url }}" >Previous Article</a >
43+ </div >
4144 {% endif %}
42- {% if not page .isFirst %}
43- <div class =" float-right" ><a href =" {{ page .nextSibling .url }}" >Next Article</a > <i class =" far fa-hand-point-right" ></i ></div >
45+ {% if not pageCollection.isFirst (page .path ) %}
46+ <div class =" float-right" >
47+ <a href =" {{ pageCollection.nextSibling (page .path ).url }}" >Next Article</a > <i class =" far fa-hand-point-right" ></i >
48+ </div >
4449 {% endif %}
4550 </div >
4651 </footer >
You can’t perform that action at this time.
0 commit comments