Template source: blog/post_list.html

{% extends 'base.html' %} {% load bootstrap_pagination %} {% block head %} <link type="text/css" href="/static/css/blog/root.css" rel="stylesheet"> {% endblock %} {% block left %} <ul class="nav nav-sidebar"> <li class="active"><a href="/blog">All Posts</a></li> <li><a href="/blog/best">Best</a></li> <li><a href="/blog/create">Create</a></li> <li><a href="/blog/relative">Relative</a></li> </ul> {% endblock %} {% block container %} <div class="container"> {% if posts %} <div class="center-block text-center"> {% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %} </div> {% for post in posts %} <div class="row"> <div class="col-md-7 post_logo"> <a href="/blog/{{ post.id }}"> <img class="img-responsive" src="{{ post.logo.url }}" alt=""> </a> </div> <div class="col-md-4"> <h3>{{ post.subject }}</h3> <p>{% if post.short_desc %}{{ post.short_desc }}{% endif %}</p> <a class="btn btn-primary" href="/blog/{{ post.id }}">View Post <span class="glyphicon glyphicon-chevron-right"></span></a> </div> </div> {% endfor %} <div class="center-block text-center"> {% bootstrap_paginate page_obj range=10 show_prev_next="false" show_first_last="true" %} </div> {% endif %} </div> {% endblock %}