cluster variable is stored in index.py

This commit is contained in:
chimchooree
2020-10-04 11:04:42 -05:00
parent 315e4103f6
commit 896c466021
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -4,9 +4,6 @@
<div class="diary-dir">
<center>
% max_pages = int((total - 1) / limit)
% cluster = 3
% # TRY DECIMAL POINT PAGES
<%
# page never below 0
if page <= 0:
@@ -31,7 +28,7 @@
% # fill out number cluster to the left when page is high
% if page > max_pages - cluster:
% for j in range(cluster - max_pages + page):
<a href=/diary/{{page + j + cluster + 1}}><b><i>{{page + j + cluster + 1}}</b></i></a>
<a href=/diary/{{max_pages - cluster * 2 + j}}>{{max_pages - cluster * 2 + j}}</a>
% end
% end