{% spaceless %} {% if page.settings.pagenav and page.siblings_count > 0 and page.slug != "index" and page.children_count == 0 and not page.gallery.slideshow.background %}
{% if not page.next_sibling[0] is empty %} {% set next = getSibling(page.next_sibling[0]) %} {% endif %} {% if not page.previous_sibling[0] is empty %} {% set previous = getSibling(page.previous_sibling[0]) %} {% endif %}
{% endif %} {% endspaceless %}