{% extends 'base.html' %} {% block content %} {% for post in posts[(p-1)*config.post_per_page:p*config.post_per_page] %}