{%- if page %}
{%- for doc in page.ancestors[::-1] %}
{%- if doc.url %}
- {{ doc.title }}
{%- else %}
- {{ doc.title }}
{%- endif %}
{%- endfor %}
- {{ page.title }}
{%- endif %}
-
{%- block repo %}
{#- Show a "Source on GitHub" link only on pages that set `github_source`
in their front matter. No page gets an "Edit on GitHub" link. #}
{%- if page and page.meta and page.meta.github_source %}
{{ page.meta.github_label or 'Source on GitHub' }}
{%- endif %}
{%- endblock %}
{%- if config.theme.prev_next_buttons_location|lower in ['top', 'both']
and page and (page.next_page or page.previous_page) %}
{%- endif %}