mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2024-12-22 00:12:41 +00:00
Fix pagination
It was iterating over all the articles, not just the articles for the page being generated.
This commit is contained in:
parent
3607fdf37a
commit
457e6f7dfd
@ -4,7 +4,7 @@
|
||||
<div class="uk-width-medium-4-5">
|
||||
|
||||
{% if articles %}
|
||||
{% for article in articles %}
|
||||
{% for article in (articles_page.object_list if articles_page else articles) %}
|
||||
|
||||
{% if loop.index == 1 %}
|
||||
<article class="uk-article" itemtype="http://schema.org/BlogPosting" itemscope="itemscope" itemprop="blogPost">
|
||||
|
Loading…
Reference in New Issue
Block a user