{% extends 'includes/layout.njk' %}

{% import "includes/paginator.njk" as P with context%}
{% import "includes/postlist.njk" as PostList with context %}

{% block body %}
    <h2 style="margin-left: 1rem">Category::{{page.category}}</h2>
    {{ PostList.PostList(page.posts.toArray()) }}

  <div id="center">
    {{ P.Paginiation() }}
  </div>
{% endblock %}
