{%- import "static/webpack-macros.html" as _webpack with context %} {%- import "partials/_icon_links_declaration.html" as _icon_declare with context %} {%- 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 %} {#- rel="canonical" (set by html_baseurl) -#} {%- if pageurl %} {%- endif %} {%- endblock linktags %} {# Favicon #} {%- if favicon_url -%} {%- endif -%} {%- endblock site_meta -%} {#- Site title -#} {%- block htmltitle -%} {% if not docstitle %} {{ title|striptags|e }} {% elif pagename == master_doc %} {{ docstitle|striptags|e }} {% else %} {{ title|striptags|e }} - {{ docstitle|striptags|e }} {% endif %} {%- endblock -%} {%- block styles -%} {{ _webpack.head_pre_icons() }} {# Custom stylesheets #} {%- block regular_styles -%} {%- for css in css_files -%} {% if css|attr("filename") -%} {{ css_tag(css) }} {%- else -%} {%- endif %} {% endfor -%} {%- endblock regular_styles -%} {#- Theme-related stylesheets -#} {%- block theme_styles %} {% include "partials/_head_css_variables.html" with context %} {%- endblock -%} {%- block extra_styles %} {%- endblock -%} {{ _webpack.head_js_preload() }} {%- endblock styles -%} {#- Custom front matter #} {%- block extrahead -%}{%- endblock -%} {% block htmlbody %} {% endblock %} {%- block scripts -%} {# Custom JS #} {%- block regular_scripts -%} {% for path in script_files -%} {{ js_tag(path) }} {% endfor -%} {%- endblock regular_scripts -%} {# Theme-related JavaScript code #} {%- block theme_scripts -%} {{ _webpack.body_post() }} {%- endblock -%} {%- endblock scripts -%}