css is absolute path, so diary subpages use css; diary nav links to right pages
This commit is contained in:
+3
-3
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user