summaryrefslogtreecommitdiff
path: root/Doc/tools/templates/layout.html
blob: 37811725d86bfeadc9c1c20b9aa5aadf66cd265c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{% extends "!layout.html" %}

{% block rootrellink %}
{{ super() }}
    <li>
      {%- if switchers is defined %}
      <span class="language_switcher_placeholder">{{ language or 'en' }}</span>
      <span class="version_switcher_placeholder">{{ release }}</span>
      <a href="{{ pathto('index') }}">{% trans %}Documentation {% endtrans %}</a>{{ reldelim1 }}
      {%- else %}
      <a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }}
      {%- endif %}
    </li>
{% endblock %}

{% block extrahead %}
    <link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html" />
    {% if builder != "htmlhelp" %}
      {% if switchers is defined and not embedded %}
      <script type="text/javascript" src="{{ pathto('_static/switchers.js', 1) }}"></script>{% endif %}
      {% if pagename == 'whatsnew/changelog' and not embedded %}
      <script type="text/javascript" src="{{ pathto('_static/changelog_search.js', 1) }}"></script>{% endif %}
    {% endif %}
{{ super() }}
{% endblock %}