{% extends 'base.html' %} {% block content %} {% if p > 1 %} {% end %} {% if len(posts) > p * config.post_per_page %} {% end %} {% end %}