diff options
author | Justin Mayer <entroP@gmail.com> | 2014-02-03 07:02:07 -0800 |
---|---|---|
committer | Justin Mayer <entroP@gmail.com> | 2014-02-03 07:02:07 -0800 |
commit | 082384ec5c4231bd32a96e56697c3b0fb764cd83 (patch) | |
tree | cf59c8e738e200aa8622627c93d7432229fe1bd9 | |
parent | 6036c183145d52eecc4d4e18cc15394bdd51ea48 (diff) | |
parent | 072a3726ecef1a4c3f02cd3538cf695c61312844 (diff) | |
download | pelican-themes-082384ec5c4231bd32a96e56697c3b0fb764cd83.tar.gz |
Merge pull request #191 from xsteadfastx/master
Fix pagination in SoMA theme
-rw-r--r-- | SoMA/templates/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SoMA/templates/index.html b/SoMA/templates/index.html index 76579b5..4f35eee 100644 --- a/SoMA/templates/index.html +++ b/SoMA/templates/index.html @@ -12,7 +12,7 @@ <h1 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1> {% include 'article_infos.html' %}{{ article.content }} </article> - {% if loop.length == 1 %} + {% if loop.last and (articles_page.has_previous() or not articles_page.has_previous() and loop.length > 1) %} {% include 'pagination.html' %} {% endif %} </div> |