{% extends "basic/layout.html" %}
{% set html5_doctype = True %}
{% block css %}
{{ super() }}
{# Allow custom css style import for specific pages #}
{% if 'custom-css' in meta %}
{% set link = '_static/css/' + meta['custom-css'] %}
{% endif %}
{% endblock %}
{% block scripts %}
{% if 'custom-js' in meta %}
{# Before the custom files using React & Immutable #}
{% set js_files = meta['custom-js'].split(';') %}
{% for js_file in js_files %}
{% set link = '_static/js/' + js_file %}
{% endfor %}
{% endif %}
{# FIXME ANVFEDI Do we really need prefixfree ? It triggers a reload of css files two more times/page #}
{{ super() }}
{# TODO EDI boostrap beta cdn ??? Isn't there a stable CDN ? It looks like this cdn won't exist forever :D #}
{% 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 #}