blog-item.html.twig 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <div class="content-item h-entry">
  2. {% if not hero_image_name %}
  3. <div class="content-title text-center">
  4. {% include 'partials/blog/title.html.twig' with {title_level: 'h2'} %}
  5. {% if page.header.subtitle %}
  6. <h3 >{{ page.header.subtitle }}</h3>
  7. {% endif %}
  8. {% include 'partials/blog/date.html.twig' %}
  9. {% include 'partials/blog/taxonomy.html.twig' %}
  10. </div>
  11. {% endif %}
  12. <div class="e-content">
  13. {{ page.content }}
  14. </div>
  15. {% if page.header.continue_link is sameas(true) and config.plugins.comments.enabled %}
  16. {% include 'partials/comments.html.twig' %}
  17. {% endif %}
  18. </div>
  19. <p class="prev-next text-center">
  20. {% if not page.isLast %}
  21. <a class="btn" href="{{ page.prevSibling.url }}"><i class="fa fa-angle-left"></i> {{ 'BLOG.ITEM.PREV_POST'|t }}</a>
  22. {% endif %}
  23. {% if not page.isFirst %}
  24. <a class="btn" href="{{ page.nextSibling.url }}">{{ 'BLOG.ITEM.NEXT_POST'|t }} <i class="fa fa-angle-right"></i></a>
  25. {% endif %}
  26. </p>