{# Import the theme's layout. #}
{% extends '!layout.html' %}
{% set nav_bar_tabs = false %}

{%- block footer %}
  <footer class="md-footer">
    <div class="md-footer-nav">
      <nav class="md-footer-nav__inner md-grid">
        {%- block footerrel %}
          {% if prev %}
            <a href="{{ prev.link|e }}" title="{{ prev.title|striptags|e }}"
               class="md-flex md-footer-nav__link md-footer-nav__link--prev"
               rel="prev">
              <div class="md-flex__cell md-flex__cell--shrink">
                <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i>
              </div>
              <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title">
                <span class="md-flex__ellipsis">
                  <span
                      class="md-footer-nav__direction"> Previous </span> {{ prev.title }} </span>
              </div>
            </a>
          {% endif %}
          {% if next %}
            <a href="{{ next.link|e }}" title="{{ next.title|striptags|e }}"
               class="md-flex md-footer-nav__link md-footer-nav__link--next"
               rel="next">
            <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title"><span
                class="md-flex__ellipsis"> <span
                class="md-footer-nav__direction"> Next </span> {{ next.title }} </span>
            </div>
            <div class="md-flex__cell md-flex__cell--shrink"><i
                class="md-icon md-icon--arrow-forward md-footer-nav__button"></i>
            </div>
          {% endif %}
        </a>
        {% endblock %}
      </nav>
    </div>
    <div class="md-footer-meta md-typeset">
      <div class="md-footer-meta__inner md-grid">
        <div class="md-footer-copyright">
          {%- if show_copyright %}
          <div class="md-footer-copyright__highlight">
            {%- if hasdoc('copyright') %}
              {% trans path=pathto('copyright'), copyright=copyright|e %}&#169;
                <a href="{{ path }}">Copyright</a> {{ copyright }}.
              {% endtrans %}
            {%- else %}
              {% trans copyright=copyright|e %}&#169; Copyright {{ copyright }}.
              {% endtrans %}
            {%- endif %}
          </div>
          {%- endif %}
          {%- if last_updated %}
            {% trans last_updated=last_updated|e %}Last updated on
              {{ last_updated }}.
            {% endtrans %}<br/>
          {%- endif %}
          {%- if show_sphinx %}
            {% trans sphinx_version=sphinx_version|e %}Created using
            <a href="http://www.sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.
            {% endtrans %} and
            <a href="https://jupyterbook.org/index.html">Jupyter Book</a> and
            <a href="https://github.com/bashtage/sphinx-material/">Material for
              Sphinx</a>
          {%- endif %}
        </div>
        {%- block extrafooter %}
        {%- endblock %}
      </div>
    </div>
  </footer>
  {%- block footer_scripts %}
  <script src="{{ pathto('_static/javascripts/application.js', 1) }}"></script>
  <script>app.initialize({version: "1.0.4", url: {base: ".."}})</script>
  {%- endblock %}
{%- endblock %}
