templates/VisualMediaBlogBundle/views/Blog/blog_post.html.twig line 1

Open in your IDE?
  1. {% extends 'Layout/base.html.twig' %}
  2. {% block head_javascript %}
  3.     {% include '@VisualMediaBlog/Blog/json_ld.html.twig' %}
  4. {% endblock %}
  5. {% block main %}
  6.     {% include '@VisualMediaVisual/Visual/visual.html.twig' with { visuals: [ post ] } %}
  7.     <div id="blog_category" class="container">
  8.         {% include '@VisualMediaBreadcrumb/Breadcrumb/breadcrumb_static.html.twig' with { breadcrumbs: [
  9.             { title: page.title, path: path('blog_index') },
  10.             { title: post.mainCategory.title, path: path('blog_category', { categorySlug: post.mainCategory.slug }) },
  11.             { title: post.title },
  12.         ] } only %}
  13.         <h1>{{ post.title }}</h1>
  14.         <span>Gepubliceerd op: {{ post.publicationDate|date('Y-m-d') }}</span><br>
  15.         <span>Categorie: <a href="{{ path('blog_category', { categorySlug: post.mainCategory.slug }) }}">{{ post.mainCategory.title }}</a></span><br>
  16.         {{ post.htmlContent|scan }}
  17.         {% if post.author is not empty %}
  18.             <span>Auteur: <i>{{ post.author }}</i></span><br>
  19.         {% endif %}
  20.         {% if post.source is not empty %}
  21.             <span>Bron: <i>{{ post.source }}</i></span>
  22.         {% endif %}
  23.     </div>
  24. {% endblock %}