Variable PAGE_PAGINATION
This commit is contained in:
parent
84934c65e2
commit
d78493f3d0
|
@ -1,6 +1,6 @@
|
|||
<h1 class="section-heading" style="font-variant: small-caps">Recent Articles</h1>
|
||||
{% for article in articles %}
|
||||
{% if loop.index > 5 %}{% break %}{% endif %}
|
||||
{% if loop.index > PAGE_PAGINATION %}{% break %}{% endif %}
|
||||
<div class="post-preview">
|
||||
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">
|
||||
<h2 class="post-title">
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
{% block content %}
|
||||
<article>
|
||||
{{ page.content }}
|
||||
{% if page.article_list %}
|
||||
{% if page.article_list and PAGE_PAGINATION > 0 %}
|
||||
<hr />
|
||||
{% include "last_articles.html" %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user