{% extends "basic/layout.html" %}
{% set html5_doctype = True %}
{% block css %}
{{ super() }}
{% if 'custom-css' in meta %}{# Allow custom css style import for specific pages #}
{% set css_files = meta['custom-css'].split(',') %}
{% for css_file in css_files %}
{% set link = '_static/css/' + css_file %}
{% endfor %}
{% endif %}
{% endblock %}
{% block scripts %}
{% if 'custom-js' in meta %}{# Allow custom js import for specific pages #}
{# Before the custom files using React & Immutable (accounting mementos) #}
{% set js_files = meta['custom-js'].split(',') %}
{% for js_file in js_files %}
{% set link = '_static/js/' + js_file %}
{% endfor %}
{% endif %}
{{ super() }} {# Load the scripts specified in the extensions/themes #}
{% endblock %}
{% block linktags %}
{% for alternate_language, language_code, url in alternate_languages %}
{%- endfor %}
{{ super() }}
{% endblock %}
{#
Google analytics key logic.
We do not want to call super here since our custom footer logic is defined in the content block.
#}
{% block footer %}
{%- if google_analytics_key -%}
{% include "layout_templates/google_analytics.html" %}
{%- endif -%}
{% endblock %}
{% block header %}
{# shown when js has properly set all the classes on the toc elements #}