Dont show older and newer buttons when pagination is disabled
This commit is contained in:
@@ -17,6 +17,7 @@ List of Pelican's settings that are supported by this theme. Refer to the
|
|||||||
for more details.
|
for more details.
|
||||||
|
|
||||||
- `FEED_*` and `*_FEED_*`
|
- `FEED_*` and `*_FEED_*`
|
||||||
|
- `DEFAULT_PAGINATION`
|
||||||
- `DISPLAY_PAGES_ON_MENU`
|
- `DISPLAY_PAGES_ON_MENU`
|
||||||
- `DISQUS_SITENAME`
|
- `DISQUS_SITENAME`
|
||||||
- `GOOGLE_ANALYTICS`
|
- `GOOGLE_ANALYTICS`
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
{% if DEFAULT_PAGINATION %}
|
||||||
<div class="pagination">
|
<div class="pagination">
|
||||||
|
|
||||||
{% if articles_page.has_previous() %}
|
{% if articles_page.has_previous() %}
|
||||||
@@ -30,4 +31,5 @@
|
|||||||
<span class="pagination-item newer">Older</span>
|
<span class="pagination-item newer">Older</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user