diff --git a/src/index.py b/src/index.py index 084da62..c559463 100644 --- a/src/index.py +++ b/src/index.py @@ -121,7 +121,7 @@ def diary2(): @route('/diary/') 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__': diff --git a/src/views/diary.tpl b/src/views/diary.tpl index 3c8d4b0..6388e5b 100644 --- a/src/views/diary.tpl +++ b/src/views/diary.tpl @@ -2,7 +2,7 @@
- +
<% if page <= 0: page = 0 @@ -24,6 +24,7 @@ % if page <= total - limit: last % end +
diff --git a/src/views/nav.tpl b/src/views/nav.tpl index 8dec043..e8e9b06 100644 --- a/src/views/nav.tpl +++ b/src/views/nav.tpl @@ -8,17 +8,17 @@