Fix pagination

It was iterating over all the articles, not just the articles for the
page being generated.
This commit is contained in:
Brian C. Lane 2015-11-07 11:22:59 -08:00 committed by Luca Chiricozzi
parent 3607fdf37a
commit 457e6f7dfd

View File

@ -4,7 +4,7 @@
<div class="uk-width-medium-4-5"> <div class="uk-width-medium-4-5">
{% if articles %} {% if articles %}
{% for article in articles %} {% for article in (articles_page.object_list if articles_page else articles) %}
{% if loop.index == 1 %} {% if loop.index == 1 %}
<article class="uk-article" itemtype="http://schema.org/BlogPosting" itemscope="itemscope" itemprop="blogPost"> <article class="uk-article" itemtype="http://schema.org/BlogPosting" itemscope="itemscope" itemprop="blogPost">