{% if page.robots|default('index') != 'index' %}{% endif %} {% if socialImage|default(null) %}{% endif %} {% if googleFonts|default(null) %}{% endif %} {% if page.document.schemaVersion >= 2 %}{% endif %} {% if page.document.schemaVersion >= 3 %}{% endif %} {% if needsTabs|default(false) %}{% endif %} {# Own scripts of this page, as a file. Never rendered in the editor preview: the preview must show the layout, not run code that could change the page under the editor's hands. #} {% if pageScript|default(null) and not editing|default(false) %}{% endif %} {# A data block, not a script: CSP script-src does not apply to application/ld+json. #} {% for block in structuredData|default([]) %} {% endfor %} {% if pageStyles|default('') %} {# In the editor the preview inherits the administration's policy, which forbids inline styles. The stylesheet therefore travels as inert template text and the editor applies it as a constructed stylesheet – same result, no policy violation and a clean console. #} {% if editing|default(false) %} {% else %}{% endif %} {% endif %} {% set consentOpen = not editing|default(false) and consentGate.needsBanner(app.request) %} {# Header and footer are block documents like any page, so they are built from elements instead of being written into this template. #} {% if areas.header|default(null) %}
{% for block in areas.header.blocks %}{% include 'blocks/block.html.twig' with {block: block, editing: editing|default(false), postLists: {}, forms: {}, breadcrumbs: [], navigation: navigation|default({}), sections: sections|default({}), richText: areas.header.schemaVersion|default(1) >= 12, richHeadings: areas.header.schemaVersion|default(1) >= 17, eagerImage: eagerImage|default(null)} only %}{% endfor %}
{% endif %}
{% if postMeta is defined and postMeta is not null and siteSettings.load().postMetaHeader %}

{% if page.published_at %}{% endif %} {% if page.author %}von {{ page.author }}{% endif %} {% for term in postMeta.category %}{{ term.name }}{% endfor %} {% for term in postMeta.tag %}{% endfor %}

{% endif %} {% for block in page.document.blocks %}{% include 'blocks/block.html.twig' with {block: block, editing: editing|default(false), postLists: postLists|default({}), forms: forms|default({}), breadcrumbs: breadcrumbs|default([]), navigation: navigation|default({}), sections: sections|default({}), richText: page.document.schemaVersion|default(1) >= 12, richHeadings: page.document.schemaVersion|default(1) >= 17, eagerImage: eagerImage|default(null)} only %}{% endfor %}
{% if areas.footer|default(null) %} {% endif %} {# Privacy statement, imprint and the way back to the consent decision. All three have to be reachable from every page, so they are part of the template and not of the footer area, which someone could delete. One labelled landmark, so they are not loose text either. #} {% set legal = consentGate.legalLinks() %} {% set revocable = not editing|default(false) and consentGate.askedGroups is not empty and not consentGate.needsBanner(app.request) %} {% if legal is not empty or revocable %} {% endif %} {% if not editing|default(false) and consentGate.needsBanner(app.request) %} {% include 'consent-banner.html.twig' with {consent: consentGate.state(app.request), back: app.request.pathInfo} only %} {% endif %}