{% extends "Layout/default.html.twig" %}
{% do pimcore_placeholder('magazine').set('true') %}
{% block mainContainerStyling %}main-content--spacing{% endblock %}
{% block navigation %}
{{ include('Navigation/magazine-navbar.html.twig') }}
{% endblock %}
{% block content %}
{% set detailUrl = linkGenerator().generate(article) %}
{% do elements_canonical(detailUrl) %}
{% do elements_opengraph().setDescription(article.metaDescription ?: article.shortDescription ?: article.description) %}
{% if article.teaserImage %}
{% do elements_opengraph().addImage(article.teaserImage) %}
{% endif %}
{% do elements_head_title().setTitle(article.metaTitle ?: article.title, true) %}
{% do elements_head_meta().setDescription((article.metaDescription ?: article.shortDescription ?: article.description), true) %}
{% if not detailUrl is same as(app.request.pathInfo) %}
{% do elements_robots().setNoIndex(true) %}
{% endif %}
{# hero-magazine has h1 -> no main-title block #}
{{ include('Magazine/Includes/heroDetail.html.twig', {'article': article}) }}
<section class="intro-text-area content-block container container-sm js-fade-in">
<div class="intro-text-area__content wysiwyg">
{{ article.shortDescription | raw }}
</div>
</section>
{{ include('Includes/divider.html.twig') }}
<section class="wysiwyg-area container container-sm content-block js-fade-in {{ styleModifier | default(null) }}">
<div class="container container-sm">
<div class="wysiwyg-area__content wysiwyg">
{{ article.description|raw }}
</div>
</div>
</section>
{% for block in article.textblocks %}
{{ include(['Magazine/DetailBlocks/' ~ block.getType() ~ '.html.twig'], {'block': block}, true, true) }}
{% endfor %}
{{ jld_root(article) }}
{% endblock %}
{% block regionSlide %}
<aside class="content-block">
{{ include('Magazine/Includes/subscribe.html.twig') }}
{% if not document.property('hideRegionSlide') %}
{{ include('Includes/regionSlide.html.twig') }}
{% endif %}
</aside>
{% endblock %}
{% block javascripts %}
{% if not app.request.get('onlyInlineCss') %}
{{ include('Layout/includes/encore.html.twig', {
'staticDebugMode': staticDebugMode,
'file': 'js/magazine'
}) }}
{% endif %}
{% endblock %}