2020-11-19 22:48:36 +08:00

21 lines
551 B
Plaintext

{% extends '_layout.njk' %}
{% import '_macro/sidebar.njk' as sidebar_template with context %}
{% block title %}{{ title }}{%- if theme.index_with_subtitle and subtitle %} - {{ subtitle }}{%- endif %}{% endblock %}
{% block class %}index posts-expand{% endblock %}
{% block content %}
{%- for post in page.posts.toArray() %}
{{ partial('_macro/post.njk', {post: post, is_index: true}) }}
{%- endfor %}
{%- include '_partials/pagination.njk' -%}
{% endblock %}
{% block sidebar %}
{{ sidebar_template.render(false) }}
{% endblock %}