{%- macro script(script_files) %} {%- for scriptfile in script_files %} {%- endfor %} {%- endmacro %} {%- macro css(css_files) %} {%- for cssfile in css_files %} {%- endfor %} {%- endmacro %} {# The files that make these builds are defined in Makefile #} {%- set css_files = ['_static/css/app.css'] -%} {%- set script_files = ['_static/app.js'] -%} {%- set short_lang = '%.2s'|format(language) -%} {{ metatags }} {{ title|striptags|e }} - 3.x {{ css(css_files) }} {{ script(script_files) }} {% for lang in languages %} {%- if lang != language -%} {%- if has_lang(lang, pagename) -%} {%- endif -%} {%- endif -%} {% endfor %} {%- block linktags %} {%- if hasdoc('about') %} {%- endif %} {%- if hasdoc('genindex') %} {%- endif %} {%- if hasdoc('search') %} {%- endif %} {%- if hasdoc('copyright') %} {%- endif %} {%- if parents %} {%- endif %} {%- if next %} {%- endif %} {%- if prev %} {%- endif %} {%- endblock %} {%- block header %} {# Outer wrapper for pushing the footer to the bottom #}
{# Red Mega Menu #} {# Responsive grey bar navigation. This is outside of header so it scrolls with the page. #} {# modal used in mobile responsive views #} {% endblock -%} {%- block content %}
{%- if pagename != 'search' -%} {%- endif -%} {# Document body #}
{%- if pagename != 'search' and pagename not in ('contents', 'index', '404') -%}

{{ _('Page Contents') }}

{{ toc }}
{%- endif -%}
{% block body %} {% endblock %}
{# TOC sidebar #}
{% endblock -%} {%- block footer %}
{# End of div[id=wrapper] #}
{%- endblock %}