templates/page/news/show/show.html.twig line 1

Open in your IDE?
  1. {% extends 'layout/base.html.twig' %}
  2. {% macro meta_og(property, content) %}
  3.     <meta property="og:{{- property -}}" content="{{- content -}}" />
  4. {% endmacro %}
  5. {% import _self as _ %}
  6. {% block title %}{{ getNewsTitle(post) }} &#8211; {{ parent() }}{% endblock %}
  7. {% block seo_en %}{{ path('news_show', { news: post.getSlug() }) }}{% endblock %}
  8. {% block seo_hu %}{{ path('news_show', { news: post.getSlug(), 'lang': 'hu' }) }}{% endblock %}
  9. {% block seo_x %}{{ path('news_show', { news: post.getSlug() }) }}{% endblock %}
  10. {% block helmet %}
  11.     {{ _.meta_og('url', url('news_show', { news: post.getSlug() })) }}
  12.     {{ _.meta_og('type', 'website') }}
  13.     {{ _.meta_og('title', getNewsTitle(post)) }}
  14.     {{ _.meta_og('image', getUploadsUrl(post.coverImagePath)) }}
  15.     {{ _.meta_og('description', getNewsShortDescription(post)) }}
  16. {% endblock %}
  17. {% block body_classes %}news-single{% endblock %}
  18. {% block content %}
  19.     <article class="news-details-page article">
  20.         {% include 'page/news/show/components/header.html.twig' with { data: post } only %}
  21.         {% include 'page/news/show/components/content.html.twig' with { data: post } only %}
  22.         {% include 'common/components/news.html.twig' with { items: news, hideMore: true, isSingleNewsPage: true  } only %}
  23.     </article>
  24.     {% include 'common/components/contact_form.html.twig' with { defaultInquiry: true } only %}
  25. {% endblock %}