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
%>
% 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"/>

Loading…
Cancel
Save