{% assets with { priority: 10 } %} {% block head_stylesheets -%} {% for css in gantry.theme.configuration.css.persistent|default(gantry.theme.configuration.css.files) %} {%- set url = url(gantry.theme.css(css)) %}{% if url %} {% endif %} {%- endfor %} {% endblock -%} {% block head_platform %}{% endblock %} {% block head_overrides -%} {% for css in gantry.theme.configuration.css.overrides %} {%- set url = url(gantry.theme.css(css)) %}{% if url %} {% endif %} {%- endfor %} {% endblock -%} {% endassets -%} {%- set atoms %} {% if gantry.config.page.head.atoms %} {% for atom in gantry.config.page.head.atoms %} {% try %} {% include '@particles/' ~ atom.type ~ '.html.twig' with { particle: atom.attributes } %} {% catch %} {# TODO: Add message if atom is missing. #} {% endtry %} {% endfor %} {% endif %} {% if gantry.config.page.assets %} {% include '@particles/assets.html.twig' with { particle: gantry.config.page.assets|merge({'enabled': 1 }) } %} {% endif %} {% endset -%} {% block head_meta %} {% if gantry.config.page.head.meta -%} {% for attributes in gantry.config.page.head.meta -%} {%- for key, value in attributes %} {% endfor -%} {%- endfor -%} {%- endif -%} {% if gantry.config.page.assets.favicon %} {% endif %} {% if gantry.config.page.assets.touchicon %} {% endif %} {% endblock %} {%- block head_title -%} Title {%- endblock %} {% block head_application -%} {{ gantry.styles('head')|join("\n")|raw }} {{ gantry.scripts('head')|join("\n")|raw }} {%- endblock %} {% block head_ie_stylesheets -%} {% endblock -%} {% block head %}{% endblock %} {% block head_custom %} {% if gantry.config.page.head.head_bottom %} {{ gantry.config.page.head.head_bottom|raw }} {% endif %} {% endblock %}