templates/pages/news/detail.html.twig line 1

Open in your IDE?
  1. {% extends 'pages/base.html.twig' %}
  2. {% block title %}{{ entry.title }} | {{ parent() }}{% endblock %}
  3. {% block meta_og_title %}{{ entry.title }} | {{ parent() }}{% endblock %}
  4. {% block meta_twitter_title %}{{ entry.title }} | {{ parent() }}{% endblock %}
  5. {% block meta_description %}{{ entry.descriptionForHtml }}{% endblock %}
  6. {% block meta_og_description %}{{ entry.descriptionForHtml }}{% endblock %}
  7. {% block meta_og_image %}
  8. {% if entry.mainImage %}
  9.   <meta property="og:image" content="{{ absolute_url(entry.getImageUrl) }}">
  10.   <meta property="og:image:alt" content="{{ entry.title }}">
  11.   <meta property="og:image:width" content="{{ entry.mainImageWidth }}">
  12.   <meta property="og:image:height" content="{{ entry.mainImageHeight }}">
  13. {% else %}
  14.   {{ parent() }}
  15. {% endif %}
  16. {% endblock %}
  17. {% block body %}
  18.   <main id="news_detail">
  19.     {#<div class="breadcrumb">
  20.       <a class="breadcrumb-item" href="{{ path('top') }}">
  21.         TOP
  22.       </a>
  23.       <a class="breadcrumb-item" href="{{ path('news_index')}}">
  24.         News
  25.       </a>
  26.       <a class="breadcrumb-item" href="{{ path('news_index', {Category: entry.category.id}) }}">
  27.         {{ entry.category }}
  28.       </a>
  29.       <a class="breadcrumb-item" href="{{ path('news_detail', {id: entry.id}) }}">
  30.         {{ entry.title }}
  31.       </a>
  32.     </div>#}
  33.   {% include "layout/_aside.html.twig" %}
  34.   <div class="index_content">
  35.   {% include "pages/news/_detail.html.twig" %}
  36.   {% include "components/cms/_footer.html.twig" %}
  37.   </div>
  38. </main>
  39. {% endblock %}