<!doctype html>
<html lang="{{ app.request.locale }}">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{% apply spaceless %}
{% if not document is defined or not document %}
{% set document = pimcore_document(1) %}
{% endif %}
{% if document is instanceof('\\Pimcore\\Model\\Document\\Link') %}
{# @var document \Pimcore\Model\Document\Link #}
{% set document = document.getObject() %}
{% endif %}
{% if document.getTitle() is not empty %}
{% do pimcore_head_title().set(document.getTitle()) %}
{% endif %}
{% if document.getDescription() is not empty %}
{% do pimcore_head_meta().setDescription(document.getDescription()) %}
{% endif %}
{% set isPortal = ((isPortal is defined) and isPortal) %}
{% endapply %}
{# we're using the deferred extension here to make sure this block is rendered after all helper calls #}
{% block layout_head_meta deferred %}
{{ pimcore_head_title() }}
{{ pimcore_head_meta() }}
{% if pimcore_placeholder('canonical').count() %}
<link rel="canonical" href="{{ pimcore_placeholder('canonical') }}"/>
{% endif %}
{% endblock %}
{% block head_stylesheets deferred %}
{{ pimcore_head_link() }}
{{ encore_entry_link_tags('app') }}
{% endblock %}
</head>
<body>
{# get root node if there is no document defined (for pages which are routed directly through static route) #}
{% if not document is defined or not document %}
{% set document = pimcore_document(1) %}
{% endif %}
<div>
{{ block('content') }}
</div>
<div id="app">
<app>
</app>
</div>
{# include a document-snippet - in this case the footer document #}
{{ pimcore_inc(document.getProperty('footer')) }}
{# output scripts added before #}
{% block headscripts deferred %}
{{ pimcore_head_script() }}
{% endblock %}
{% block inlinescripts deferred %}
{{ encore_entry_script_tags('app') }}
{{ pimcore_inline_script() }}
{% endblock %}
</body>
</html>