Variable PAGE_PAGINATION

This commit is contained in:
Fabrice Mouhartem 2019-04-23 14:15:24 +05:30
parent 84934c65e2
commit d78493f3d0
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<h1 class="section-heading" style="font-variant: small-caps">Recent Articles</h1> <h1 class="section-heading" style="font-variant: small-caps">Recent Articles</h1>
{% for article in articles %} {% for article in articles %}
{% if loop.index > 5 %}{% break %}{% endif %} {% if loop.index > PAGE_PAGINATION %}{% break %}{% endif %}
<div class="post-preview"> <div class="post-preview">
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}"> <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">
<h2 class="post-title"> <h2 class="post-title">

View File

@ -28,7 +28,7 @@
{% block content %} {% block content %}
<article> <article>
{{ page.content }} {{ page.content }}
{% if page.article_list %} {% if page.article_list and PAGE_PAGINATION > 0 %}
<hr /> <hr />
{% include "last_articles.html" %} {% include "last_articles.html" %}
{% endif %} {% endif %}