}
  {% if not docstitle %}
  <title>{{ title|striptags|e }}</title>
  {% elif pagename == master_doc %}
  <title>{{ docstitle|striptags|e }}</title>
  {% else %}
  <title>{{ title|striptags|e }} - {{ docstitle|striptags|e }}</title>
  {% endif %}
  {%- endblock -%}

  {%- block styles -%}

  {# Custom stylesheets #}
  {%- block regular_styles -%}
  {%- for css in css_files -%}
  {% if css|attr("filename") -%}
  {{ css_tag(css) }}
  {%- else -%}
  <link rel="stylesheet" href="{{ pathto(css,