category.swig 947 B

123456789101112131415161718192021222324252627282930313233343536
  1. {% extends '_layout.swig' %}
  2. {% import '_macro/post-collapse.swig' as post_template with context %}
  3. {% import '_macro/sidebar.swig' as sidebar_template with context %}
  4. {% block title %}{{ __('title.category') }}: {{ page.category }} | {{ title }}{% endblock %}
  5. {% block class %}category{% endblock %}
  6. {% block content %}
  7. {######################}
  8. {### CATEGORY BLOCK ###}
  9. {######################}
  10. <div class="post-block">
  11. <div class="posts-collapse">
  12. <div class="collection-title">
  13. <h2 class="collection-header">
  14. {{- page.category }}
  15. <small>{{ __('title.category') }}</small>
  16. </h2>
  17. </div>
  18. {{ post_template.render(page.posts) }}
  19. </div>
  20. </div>
  21. {##########################}
  22. {### END CATEGORY BLOCK ###}
  23. {##########################}
  24. {% include '_partials/pagination.swig' %}
  25. {% endblock %}
  26. {% block sidebar %}
  27. {{ sidebar_template.render(false) }}
  28. {% endblock %}