only fill out number links to left if there are enough articles; less test articles
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@
|
||||
% end
|
||||
|
||||
% # fill out number cluster to the left when page is high
|
||||
% if page > max_pages - cluster:
|
||||
% if max_pages > cluster and page > max_pages - cluster:
|
||||
% for j in range(cluster - max_pages + page):
|
||||
<a href=/diary/{{max_pages - cluster * 2 + j}}>{{max_pages - cluster * 2 + j}}</a>
|
||||
% end
|
||||
|
||||
Reference in New Issue
Block a user