made page display more clear if more than 2 pages exist
This commit is contained in:
parent
25407b3773
commit
b2fc2ab3cc
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user