diff --git a/files/templates/home.html b/files/templates/home.html
index a845587d8..f989f668e 100644
--- a/files/templates/home.html
+++ b/files/templates/home.html
@@ -179,7 +179,12 @@
1
- {% if start_point != 2 %}
+
+ {% if start_point == 3 %}
+
+ 2
+
+ {% elif start_point != 2 %}
...
@@ -193,11 +198,16 @@
{% endfor %}
{% if end_point < num_pages %}
- {% if end_point != num_pages-1 %}
+ {% if end_point == num_pages-2 %}
+
+ {{num_pages-1}}
+
+ {% elif end_point != num_pages-1 %}
...
{% endif %}
+
{{num_pages}}