{% set wiki = is_wiki(request) %} {% set untrusted = settings.ENABLE_RESTRICTIONS_BY_HOST and is_untrusted(request) %} {%- block experiment_js %}{% endblock %} {% block title %}{{ _('MDN Web Docs') }}{% endblock %} {% include "includes/preload.html" %} {%- if not untrusted %} {% endif %} {% block site_css %} {% stylesheet 'mdn' %} {% for style in styles %} {% stylesheet style %} {% endfor %} {% endblock %} {% include "includes/zilla.html" %} {%- if settings.MAINTENANCE_MODE %} {% stylesheet 'maintenance-mode-global' %} {%- endif %} {#- If the stylesheet exists, include it. Otherwise, does nothing. #} {% stylesheet 'locale-%s' % LANG %} {% block site_analytics %} {% include "includes/google_analytics.html" %} {% endblock %} {% block speedcurve_lux %} {% include "includes/speedcurve-lux.html" %} {% endblock %} {% block perfhead %}{% endblock %} {%- if not untrusted %} {%- block site_meta %} {% set social_logo = request.build_absolute_uri(static('img/opengraph-logo.png')) %} {% endblock %} {% endif %} {% block extrahead %}{% endblock %} {% block printstyle %} {% stylesheet 'print' %} {% endblock %} {% include "includes/config.html" %} {%- if settings.MAINTENANCE_MODE %}

{{ _('MDN is currently in read-only maintenance mode.') }} {%- if not untrusted %} {{ _('Learn more') }}. {%- endif %}

{%- else %} {{ soapbox_messages(get_soapbox_messages(request.path)) }} {%- endif %} {%- if not untrusted %} {% include "includes/a11y-nav.html" %} {# Banner shown on wiki.d.m.o to clearly distinguish it from pages on d.m.o #} {% block wiki_notice %}{% endblock %}
{% include "includes/nav-main-search.html" %}
{%- endif %} {# if not untrusted #}
{% block document_head %}{% endblock %}
{% block content %}{% endblock %}
{%- block banners %}{% endblock %} {%- block contrib_popup %}{# Inject contributions popup where needed #}{% endblock %} {%- if not untrusted %} {%- endif %} {# if not untrusted #} {% block site_js %} {{ providers_media_js() }} {% javascript 'main' %} {% for script in scripts %} {% javascript script %} {% endfor %} {% endblock %} {% block js %}{% endblock %}