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

small-nav
chimchooree 4 years ago
parent 47162de3d3
commit 25d6a9093a

@ -12,17 +12,17 @@
end end
%> %>
% if page >= limit + 1: % if page >= limit + 1:
<a href=0>first</a> <a href=/diary/0>first</a>
% end % end
% for i in range(max(0,page - limit), min(total,page + limit)): % for i in range(max(0,page - limit), min(total,page + limit)):
% if i == page: % if i == page:
<b>{{i}}</b> <b>{{i}}</b>
% else: % else:
<a href={{i}}>{{i}}</a> <a href=/diary/{{i}}>{{i}}</a>
% end % end
% end % end
% if page <= total - limit: % if page <= total - limit:
<a href={{total-1}}>last</a> <a href=/diary/{{total-1}}>last</a>
% end % end
</div> </div>

@ -1,3 +1,3 @@
<title>{{title or 'blessfrey.me'}}</title> <title>{{title or 'blessfrey.me'}}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <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"/>

Loading…
Cancel
Save