{# basic/layout.html ~~~~~~~~~~~~~~~~~ :copyright: Copyright 2016 by Johannes Schriewer :license: BSD, see LICENSE for details. #} {%- block doctype -%} {%- endblock %} {%- set reldelim1 = reldelim1 is not defined and ' »' or reldelim1 %} {%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %} {%- set render_parent = (parents != []) %} {%- set url_root = pathto('', 1) %} {%- if not embedded and docstitle %} {%- set titlesuffix = " — "|safe + docstitle|e %} {%- else %} {%- set titlesuffix = "" %} {%- endif %} {%- macro relbar() %} {%- if sidebars %} {%- endif %} {%- endmacro %} {%- macro sidebar() %} {%- if sidebars %} {%- endif %} {%- endmacro %} {%- macro script() %} {%- for scriptfile in script_files %} {%- endfor %} {%- endmacro %} {%- macro css() %} {%- for cssfile in css_files %} {%- endfor %} {%- endmacro %} {{ metatags }} {%- block htmltitle %} {{ title|striptags|e }}{{ titlesuffix }} {%- endblock %} {{ css() }} {{ script() }} {%- if favicon %} {%- endif %} {%- block linktags %} {%- if hasdoc('about') %} {%- endif %} {%- if hasdoc('swift-modindex') %} {%- else %} {%- if hasdoc('genindex') %} {%- endif %} {%- endif %} {%- if hasdoc('copyright') %} {%- endif %} {%- if parents %} {%- endif %} {%- if next %} {%- endif %} {%- if prev %} {%- endif %} {%- endblock %} {%- block extrahead %} {% endblock %} {%- block header %}{% endblock %}
{%- block relbar %}{{ relbar() }}{% endblock %} {%- block content %} {%- block sidebar1 %} {# possible location for sidebar #} {% endblock %} {%- block document %} {% block body %} {% endblock %} {%- endblock %} {%- endblock %}
{%- block sidebar %}{{ sidebar() }}{% endblock %}
{%- block footer %} {%- endblock %}