{%- 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 body_tag %}
{%- endblock %} {% block header %}