made page display more clear if more than 2 pages exist

This commit is contained in:
neko 2021-04-13 19:42:19 +02:00
parent 25407b3773
commit b2fc2ab3cc

View File

@ -11,6 +11,6 @@ layout: page-screen
{% if paginator.total_pages > 1 %}
{% if paginator.page == 1 %} <p>Page {{paginator.page}} <a href="{{site.baseurl}}{{paginator.next_page_path}}">»</a> </p>
{% elsif paginator.page == paginator.total_pages %} <p> <a href="{{site.baseurl}}{{paginator.previous_page_path}}">«</a> Page {{paginator.page}} </p>
{% else %} <p> <a href="{{site.baseurl}}{{paginator.previous_page_path}}">«</a> {{paginator.page}} <a href="{{site.baseurl}}{{paginator.next_page_path}}">»</a> </p>
{% else %} <p> <a href="{{site.baseurl}}{{paginator.previous_page_path}}">«</a> Page {{paginator.page}} of {{paginator.total_pages}} <a href="{{site.baseurl}}{{paginator.next_page_path}}">»</a> </p>
{% endif %}
{% endif %}