From d78493f3d0681cd26b6e60a0fec3c5fe095ee415 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Tue, 23 Apr 2019 14:15:24 +0530 Subject: [PATCH] Variable PAGE_PAGINATION --- templates/last_articles.html | 2 +- templates/page.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/last_articles.html b/templates/last_articles.html index bf00a91..121cbfa 100644 --- a/templates/last_articles.html +++ b/templates/last_articles.html @@ -1,6 +1,6 @@

Recent Articles

{% for article in articles %} - {% if loop.index > 5 %}{% break %}{% endif %} + {% if loop.index > PAGE_PAGINATION %}{% break %}{% endif %}

diff --git a/templates/page.html b/templates/page.html index ff7fe09..f0d8bc8 100644 --- a/templates/page.html +++ b/templates/page.html @@ -28,7 +28,7 @@ {% block content %}
{{ page.content }} - {% if page.article_list %} + {% if page.article_list and PAGE_PAGINATION > 0 %}
{% include "last_articles.html" %} {% endif %}