{%- extends 'pydata_sphinx_theme/layout.html' %}

{% block extrahead %}
    <link rel="canonical" href="https://mne.tools/stable/{{ pagename }}.html" />
    {{ super() }}
{% endblock %}

{% block docs_body %}
<div>
  {% block body %} {% endblock %}
  {% if pagename == 'index' %}
    {%- include 'homepage.html' -%}
  {% endif %}
</div>
{% endblock %}

{%- block scripts_end %}
    {{ super() }}
    <script src="https://mne.tools/versionwarning.js"></script>
{%- endblock %}
