blog-item.html.twig 1.0 KB

123456789101112131415161718192021222324252627282930
  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|raw }}
  14. </div>
  15. {% if page.header.continue_link is same as(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> {{ 'THEME_QUARK.BLOG.ITEM.PREV_POST'|t }}</a>
  22. {% endif %}
  23. {% if not page.isFirst %}
  24. <a class="btn" href="{{ page.nextSibling.url }}">{{ 'THEME_QUARK.BLOG.ITEM.NEXT_POST'|t }} <i class="fa fa-angle-right"></i></a>
  25. {% endif %}
  26. </p>