{% include "breadcrumbs.html" %}

{% if page.is_homepage %}
    {% include "homepage.html" %}
{% else %}
    {% include "toc.html" %}

    {{ page.content }}
{% endif %}

{% if page.previous_page or page.next_page  %}
    {% include "page-nav.html" %}
{% endif %}

<div class="help-wanted">
    <p>
        Found a mistake or want to contribute to the documentation?
        <a href="{{ page.edit_url }}" target="_blank" class="help-wanted__link">
            Edit this page on GitHub!
        </a>
    </p>
</div>

{% include "breadcrumbs.html" %}

{% if page.is_homepage %}
    {% include "homepage.html" %}
{% else %}
    {% include "toc.html" %}

    {{ page.content }}
{% endif %}

{% if page.previous_page or page.next_page  %}
    {% include "page-nav.html" %}
{% endif %}

{% if not page.is_homepage or (page.is_homepage and config.extra.show_special_homepage) %}
    <div class="help-wanted">
        <p>
            Found a mistake or want to contribute to the documentation?
            <a href="{{ page.edit_url }}" target="_blank" class="help-wanted__link">
                Edit this page on GitHub!
            </a>
        </p>
    </div>
{% endif %}

Hide link for editing page on standard homepage
Hide link for editing page on standard homepage
