{# ru-fu: copied from Furo, with modifications as stated below. Modifications are marked 'mod:'. #}
{# mod: Per-page navigation #}
{% if meta %}
{% if 'sequential_nav' in meta %}
{% set sequential_nav = meta.sequential_nav %}
{% endif %}
{% endif %}
{# mod: Conditional wrappers to control page navigation buttons #}
{% if sequential_nav != "none" -%}
{% if next and (sequential_nav == "next" or sequential_nav == "both") -%}
{% if github_url and github_folder and pagename and page_source_suffix and display_contributors %}
{% set contributors = get_contribs(github_url, github_folder, pagename, page_source_suffix, display_contributors_since) %}
{% if contributors %}
{% if contributors | length > 1 %}
Thanks to the {{ contributors |length }} contributors!
{% else %}
Thanks to our contributor!
{% endif %}