{# TEMPLATE VAR SETTINGS #} {%- set url_root = pathto('', 1) %} {%- if url_root == '#' %}{% set url_root = '' %}{% endif %} {%- if not embedded and docstitle %} {%- set titlesuffix = " — "|safe + docstitle|e %} {%- else %} {%- set titlesuffix = "" %} {%- endif %} {%- set lang_attr = 'en' if language == None else (language | replace('_', '-')) %} {% from 'theme_variables.jinja' import external_urls as theme_variables %} {% from 'image_variables.jinja' import external_urls as image_variables %} {% macro get_image_var(name) -%} url({{ pathto('_static/' + name, 1) }}) {%- endmacro %} {% macro modify_theme_var(name) -%} {{name}}{%- if not name.endswith('.html') and not name.startswith('http') and not name.startswith('www.') %}{%- if not name.endswith('/') and name|length>0 %}/{%- endif %}index{%- endif %} {%- endmacro %} {% macro get_theme_var(name) -%} {{ pathto(modify_theme_var(name)) }} {%- endmacro %}
{{ metatags }} {% block htmltitle %}