{%- extends "basic/layout.html" %} {# Turn comma-separated list into proper list #} {% if theme_left_buttons is string and theme_left_buttons %} {% set theme_left_buttons = theme_left_buttons.split(',')|map('trim') %} {% endif %} {% if theme_right_buttons is string and theme_right_buttons %} {% set theme_right_buttons = theme_right_buttons.split(',')|map('trim') %} {% endif %} {% macro stripsectionnumber(title) %} {%- if title.startswith('') %} {{- title.split('', 1)|last }} {%- else %} {{- title }} {%- endif %} {%- endmacro %} {# Remove section numbers from title/next/previous/up/breadcrumbs links #} {% if theme_strip_section_numbers %} {% set title = stripsectionnumber(title) %} {% if next %} {% set next = namespace(next) %} {% set next.title = stripsectionnumber(next.title) %} {% endif %} {% if prev %} {% set prev = namespace(prev) %} {% set prev.title = stripsectionnumber(prev.title) %} {% endif %} {% set new_parents = [] %} {% for parent in parents %} {% set parent = namespace(parent) %} {% set parent.title = stripsectionnumber(parent.title) %} {# Dummy assignment to be able to call append() #} {% set _dummy = new_parents.append(parent) %} {% endfor %} {% set parents = new_parents %} {% endif %} {% if sidebars and 'ethical-ad.html' not in sidebars %} {# Dummy assignment to be able to call append() #} {% set _dummy = sidebars.append('ethical-ad.html') %} {% endif %} {% block css %} {{- super() }} {%- if READTHEDOCS|tobool and render_sidebar %} {%- endif %} {%- endblock %} {% block scripts %} {{ super() }} {%- if render_sidebar %} {%- endif %} {%- endblock %} {% block extrahead %} {%- endblock %} {% block header %} {%- if render_sidebar %} {%- endif %}
{%- if not theme_rightsidebar|tobool %} {%- include 'sidebar-button.html' %} {%- endif %} {%- for buttontemplate in theme_left_buttons %} {%- include buttontemplate %} {%- endfor %}
{%- if parents %} {{ parents[-1].title }} {%- elif pagename == master_doc %} {#- NB: In the "singlehtml" builder docstitle is None #} {{ docstitle|e if docstitle != None else title|e }} {%- else %} {{ docstitle|e }} {%- endif %} {{ title }}
{%- for buttontemplate in theme_right_buttons %} {%- include buttontemplate %} {%- endfor %} {%- if theme_rightsidebar|tobool %} {%- include 'sidebar-button.html' %} {%- endif %}
{%- if pagename != "search" and 'searchbox.html' not in sidebars %} {%- endif %}
{%- if theme_body_max_width != None %} {%- endif %} {%- endblock %} {% macro insipid_relbar() %} {%- endmacro %} {% block relbar1 %} {{ insipid_relbar() }} {%- endblock %} {% block relbar2 %} {{ insipid_relbar() }} {%- endblock %} {% block footer %} {% if self.comments()|trim %}
{% block comments %}{% endblock %}
{% endif%} {% include 'footer.html' %} {%- endblock %} {% block sidebarlogo %} {{ super() }} {% endblock %}