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>
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<title>{{title or 'blessfrey.me'}}</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link rel="stylesheet" type="text/css" href="static/css/{{css}}.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="/static/css/{{css}}.css"/>
|
||||
|
||||
Reference in New Issue
Block a user