{% from "includes/common_macros.html" import optimizely_script with context %} {% if not is_sphinx %} {{ optimizely_script() }} {% endif %} {% block title %}{{ _('Mozilla Developer Network') }}{% endblock %} {% block site_css %} {{ css('mdn', 'all') }} {% for style in styles %} {{ css(style) }} {% endfor %} {% endblock %} {% set social_logo = request.build_absolute_uri('/media/redesign/img/opengraph-logo.png') %} {% if request.META.SERVER_NAME in settings.PRODUCTION_URL %} {% set favicon_suffix = '' %} {% elif request.META.SERVER_NAME in settings.STAGING_URL %} {% set favicon_suffix = '-staging' %} {% else %} {% set favicon_suffix = '-local' %} {% endif %} {% block extrahead %}{% endblock %} {% if not is_sphinx %} {% include "includes/google_analytics.html" %} {% endif %} {% include "includes/config.html" %} {{ soapbox_messages(get_soapbox_messages(request.path)) }} {% if waffle.flag('badger') %} {% include "badger/includes/recent_badge_awards.html" %} {% endif %}
{% block content %}{% endblock %}
{% if not waffle.flag('static-i18njs') %} {% endif %} {% block site_js %} {{ js('main') }} {% if waffle.flag('ga_outbound_links') %} {% endif %} {% for script in scripts %} {{ js(script) }} {% endfor %} {% endblock %} {% block js %}{% endblock %}