{% extends 'layout/base.html.twig' %}
{% macro meta_og(property, content) %}
<meta property="og:{{- property -}}" content="{{- content -}}" />
{% endmacro %}
{% import _self as _ %}
{% block title %}{{ getNewsTitle(post) }} – {{ parent() }}{% endblock %}
{% block seo_en %}{{ path('news_show', { news: post.getSlug() }) }}{% endblock %}
{% block seo_hu %}{{ path('news_show', { news: post.getSlug(), 'lang': 'hu' }) }}{% endblock %}
{% block seo_x %}{{ path('news_show', { news: post.getSlug() }) }}{% endblock %}
{% block helmet %}
{{ _.meta_og('url', url('news_show', { news: post.getSlug() })) }}
{{ _.meta_og('type', 'website') }}
{{ _.meta_og('title', getNewsTitle(post)) }}
{{ _.meta_og('image', getUploadsUrl(post.coverImagePath)) }}
{{ _.meta_og('description', getNewsShortDescription(post)) }}
{% endblock %}
{% block body_classes %}news-single{% endblock %}
{% block content %}
<article class="news-details-page article">
{% include 'page/news/show/components/header.html.twig' with { data: post } only %}
{% include 'page/news/show/components/content.html.twig' with { data: post } only %}
{% include 'common/components/news.html.twig' with { items: news, hideMore: true, isSingleNewsPage: true } only %}
</article>
{% include 'common/components/contact_form.html.twig' with { defaultInquiry: true } only %}
{% endblock %}