diary nav links use absolute paths; gave main pages unique titles

small-nav
chimchooree 4 years ago
parent 25d6a9093a
commit 7bb825de1f

@ -121,7 +121,7 @@ def diary2():
@route('/diary/<page:int>') @route('/diary/<page:int>')
def diary(page): def diary(page):
"""diary page""" """diary page"""
info = {'css': 'diary', 'title': 'blessfrey - about the game', 'year': datetime.datetime.now(), 'snippets': list_snippets(sort_files(gather_files())), 'latest': make_latest(), 'total': len(gather_files()), 'limit': 3, 'page': page} info = {'css': 'diary', 'title': 'blessfrey - developer diary', 'year': datetime.datetime.now(), 'snippets': list_snippets(sort_files(gather_files())), 'latest': make_latest(), 'total': len(gather_files()), 'limit': 3, 'page': page}
return template('diary.tpl', info) return template('diary.tpl', info)
if __name__ == '__main__': if __name__ == '__main__':

@ -2,7 +2,7 @@
<div class="dir-row"> </div> <div class="dir-row"> </div>
<div class="diary-dir"> <div class="diary-dir">
<center>
<% <%
if page <= 0: if page <= 0:
page = 0 page = 0
@ -24,6 +24,7 @@
% if page <= total - limit: % if page <= total - limit:
<a href=/diary/{{total-1}}>last</a> <a href=/diary/{{total-1}}>last</a>
% end % end
</center>
</div> </div>
<!--left column--> <!--left column-->

@ -8,17 +8,17 @@
</a> </a>
</div> </div>
<div class="nav-game"> <div class="nav-game">
<a href="game"> <a href="/game">
<div class="button">game</div> <div class="button">game</div>
</a> </a>
</div> </div>
<div class="nav-diary"> <div class="nav-diary">
<a href="diary"> <a href="/diary">
<div class="button">diary</div> <div class="button">diary</div>
</a> </a>
</div> </div>
<div class="nav-presskit"> <div class="nav-presskit">
<a href="presskit"> <a href="/presskit">
<div class="button">presskit</div> <div class="button">presskit</div>
</a> </a>
</div> </div>

Loading…
Cancel
Save