From 7bb825de1f62d35388545e36c1d86cb6bf8981db Mon Sep 17 00:00:00 2001 From: chimchooree Date: Sat, 3 Oct 2020 13:50:30 -0500 Subject: [PATCH] diary nav links use absolute paths; gave main pages unique titles --- src/index.py | 2 +- src/views/diary.tpl | 3 ++- src/views/nav.tpl | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) 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 @@