diff --git a/blog/templates/blog/listing.html b/blog/templates/blog/listing.html index c1587cc..9c9427f 100644 --- a/blog/templates/blog/listing.html +++ b/blog/templates/blog/listing.html @@ -2,11 +2,13 @@ {% block content %} {% if posts %} +{% include 'paginator.html' with list=posts %} {% for post in posts %} {% with title_links=True %} {% include 'blog/post.html' %} {% endwith %} {% endfor %} +{% include 'paginator.html' with list=posts %} {% else %}
No posts are returned for your query.
{% endif %} diff --git a/blog/urls.py b/blog/urls.py index b11cbac..e7d2d96 100644 --- a/blog/urls.py +++ b/blog/urls.py @@ -2,8 +2,10 @@ from django.conf.urls import patterns, url from blog import views urlpatterns = patterns('', - url(r'^$', views.index, name='index'), - url(r'^feed$', views.feed, name='feed'), - url(r'^tag/(?P