-
Notifications
You must be signed in to change notification settings - Fork 451
/
Copy pathcategory.njk
36 lines (28 loc) · 958 Bytes
/
category.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{% extends '_layout.njk' %}
{% import '_macro/post-collapse.njk' as post_template with context %}
{% import '_macro/sidebar.njk' as sidebar_template with context %}
{% block title %}{{ __('title.category') }}: {{ page.category }} | {{ title }}{% endblock %}
{% block class %}category posts-collapse{% endblock %}
{% block content %}
{######################}
{### CATEGORY BLOCK ###}
{######################}
<div class="post-block">
<div class="post-content">
<div class="collection-title">
<h1 class="collection-header">
{{- page.category }}
<small>{{ __('title.category') }}</small>
</h1>
</div>
{{ post_template.render(page.posts) }}
</div>
</div>
{##########################}
{### END CATEGORY BLOCK ###}
{##########################}
{%- include '_partials/pagination.njk' -%}
{% endblock %}
{% block sidebar %}
{{ sidebar_template.render(false) }}
{% endblock %}