@ -121,7 +121,7 @@ def diary2():
@route('/diary/<page:int>')
def 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)
if __name__ == '__main__':
@ -2,7 +2,7 @@
<div class="dir-row"> </div>
<div class="diary-dir">
<center>
<%
if page <= 0:
page = 0
@ -24,6 +24,7 @@
% if page <= total - limit:
<a href=/diary/{{total-1}}>last</a>
% end
</center>
</div>
<!--left column-->
@ -8,17 +8,17 @@
</a>
<div class="nav-game">
<a href="game">
<a href="/game">
<div class="button">game</div>
<div class="nav-diary">
<a href="diary">
<a href="/diary">
<div class="button">diary</div>
<div class="nav-presskit">
<a href="presskit">
<a href="/presskit">
<div class="button">presskit</div>