{#
    epub/layout.html
    ~~~~~~~~~~~~~~~~

    Sphinx layout template for the epub theme.

    :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
#}
{%- extends "basic/layout.html" %}

{%- block doctype -%}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
{%- endblock -%}
{# add only basic navigation links #}
{% block sidebar1 %}{% endblock %}
{% block sidebar2 %}{% endblock %}
{% block relbar2 %}{% endblock %}
{% block linktags %}{% endblock %}

{# redefine relbar1 and footer to only call super if options are true #}
{%- block relbar1 %}
{% if theme_relbar1|tobool %}{{ super() }}{% endif %}
{%- endblock %}
{%- block footer %}
{% if theme_footer|tobool %}{{ super() }}{% endif %}
{%- endblock %}

