{% if page.ancestors %}
    {% set parent_path = page.ancestors | last %}
    {% set parent = get_section(path=parent_path, metadata_only=true) %}
    {% set back_label = parent.extra | get(key="back_label", default="") %}

    {% if back_label %}
        <p class="context-link">
            <a href="{{ parent.permalink | safe }}">
                ← {{ back_label }}
            </a>
        </p>
    {% endif %}
{% endif %}
