{% extends 'layout.html' %} {% block content %} {% if p > 1 %} {% endif %} {% if posts_num > p * config.per_page %} {% endif %} {% endblock %}