Fix broken 'next' and 'prev' in 'all posts'

Closes #1047

See merge request monero-project/monero-site!1213
This commit is contained in:
luigi1111 2020-02-20 20:47:45 +01:00
commit 984f2b803d

View file

@ -33,7 +33,7 @@ title: titles.allposts
{% if paginator.total_pages > 1 %}
<div class="text-center page-numbers"><p>
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a>
<a href="{{ paginator.previous_page_path | replace: '//', '/' }}">&laquo; Prev</a>
{% else %}
<span>&laquo; Prev</span>
{% endif %}
@ -49,7 +49,7 @@ title: titles.allposts
{% endfor %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next &raquo;</a>
<a href="{{ paginator.next_page_path | replace: '//', '/' }}">Next &raquo;</a>
{% else %}
<span>Next &raquo;</span>
{% endif %}