css is absolute path, so diary subpages use css; diary nav links to right pages

This commit is contained in:
chimchooree
2020-10-03 13:31:46 -05:00
parent 47162de3d3
commit 25d6a9093a
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -12,17 +12,17 @@
end
%>
% if page >= limit + 1:
<a href=0>first</a>
<a href=/diary/0>first</a>
% end
% for i in range(max(0,page - limit), min(total,page + limit)):
% if i == page:
<b>{{i}}</b>
% else:
<a href={{i}}>{{i}}</a>
<a href=/diary/{{i}}>{{i}}</a>
% end
% end
% if page <= total - limit:
<a href={{total-1}}>last</a>
<a href=/diary/{{total-1}}>last</a>
% end
</div>