Only show post pagination if there are previous or next posts
This commit is contained in:
1 parent
4548f70ee5
commit
58662946cd
1 file changed
+4
-2
@@ -1,4 +1,5 @@
|
||||
<nav class="pagination">
|
||||
{% if page.previous or page.next %}
|
||||
<nav class="pagination">
|
||||
{% if page.previous %}
|
||||
<a href="{{ base_path }}{{ page.previous.url }}" class="pagination--pager" title="{{ page.previous.title | markdownify | strip_html }}">{{ site.data.ui-text[site.locale].pagination_previous }}</a>
|
||||
{% else %}
|
||||
@@ -9,4 +10,5 @@
|
||||
{% else %}
|
||||
<a href="#" class="pagination--pager disabled">{{ site.data.ui-text[site.locale].pagination_next }}</a>
|
||||
{% endif %}
|
||||
</nav>
|
||||
</nav>
|
||||
{% endif %}
|
||||
Reference in new issue
Block a user