{%- block site_meta -%} {%- if metatags %}{{ metatags }}{% endif -%} {%- block linktags %} {%- if hasdoc('about') -%} {%- endif -%} {%- if hasdoc('genindex') -%} {%- endif -%} {%- if hasdoc('search') -%} {%- endif -%} {%- if hasdoc('copyright') -%} {%- endif -%} {%- if next -%} {%- endif -%} {%- if prev -%} {%- endif -%} {%- endblock linktags %} {# Favicon #} {%- if favicon -%} {%- endif -%} {#- Generator banner -#} {%- endblock site_meta -%} {#- Site title -#} {%- block htmltitle -%} {% if pagename == master_doc %} {{ _("Home") }} - {{ docstitle|striptags|e }} {% else %} {{ title|striptags|e }} - {{ docstitle|striptags|e }} {% endif %} {%- endblock -%} {%- block styles -%} {#- Theme-related stylesheets -#} {%- block theme_styles -%} {% include "partials/_head_css_variables.html" with context %} {%- endblock -%} {# Custom stylesheets #} {%- block regular_styles -%} {%- for path in css_files -%} {% if not path.filename.startswith("pygments_dark") -%} {{ css_tag(path) }} {%- endif %} {% endfor -%} {%- endblock regular_styles -%} {%- block extra_styles -%} {%- endblock -%} {%- endblock styles -%} {%- block scripts -%} {# Custom JS #} {%- block regular_scripts -%} {# This is *exactly* how `basic` handles this file. #} {% for path in script_files -%} {% set tag = js_tag(path) -%} {%- if tag.startswith(" {%- endblock -%} {%- endblock scripts -%} {#- Custom front matter #} {%- block extrahead -%}{%- endblock -%} {% block body %}{% endblock %}