{%- extends "base/website.html.twig" -%} {%- block main -%}
{%- if document.properties.breadcrumbs_navigation_root and document.properties.breadcrumbs_navigation_root.data -%} {%- set navigation = pimcore_build_nav({ active: document, root: document.properties.breadcrumbs_navigation_root.data }) -%} {%- do app_navigation_enrich_breadcrumbs(navigation) -%} {%- set renderer = pimcore_nav_renderer('breadcrumbs') -%} {%- do renderer.setMinDepth(null) -%} {%- do renderer.setPartial('snippets/breadcrumbs/render.html.twig') -%}
{{ renderer.renderPartial(navigation) | raw }}
{%- endif -%}
{%- set date = document.modificationDate -%} {%- if document.properties.publish_date is defined and document.properties.publish_date.data -%} {%- set date = document.properties.publish_date.data -%} {%- endif -%}

{{ pimcore_input('h1', { placeholder: document.properties.navigation_name.data, defaultValue: document.properties.navigation_name.data, }) }}

{%- if editmode -%} {{ pimcore_image('featuredImage', { height: 654 }) }} {%- else -%} {%- set image = pimcore_image('featuredImage') -%} {{ image.thumbnail('blog-detail-featured-image').html({ 'disableAutoAlt': true, 'alt': get_image_i18n_alt(image, ''), 'pictureAttributes': { 'class': 'd-block user-select-none pointer-events-none mt-n80 featured-image' }, 'imgAttributes': { 'class': 'd-block w-auto object-fit-cover' } }) | raw }} {%- endif -%}
{{ pimcore_areablock('blogPostBody', { 'globalParams': { 'parentIndexes': [0] }, 'allowed': allowed }) }}
{%- endblock main -%}