diff --git a/src/index.py b/src/index.py index 3e2f6df..aa1e35f 100644 --- a/src/index.py +++ b/src/index.py @@ -1,6 +1,10 @@ import datetime from bottle import route, run, template +# diary + +# Webpages + @route('/') def index(): """home page""" @@ -22,7 +26,7 @@ def presskit(): @route('/diary') def diary(): """diary page""" - info = {'title': 'blessfrey - about the game', 'year': datetime.datetime.now()} + info = {'title': 'blessfrey - about the game', 'year': datetime.datetime.now(), 'snippets': 'snippet', 'latest': 'latest'} return template('diary.tpl', info) if __name__ == '__main__': diff --git a/src/views/diary.tpl b/src/views/diary.tpl index c2f8fbf..b6e7ace 100644 --- a/src/views/diary.tpl +++ b/src/views/diary.tpl @@ -7,7 +7,7 @@
- diary pages + {{snippets}}
@@ -24,7 +24,7 @@

latest

- latest text + {{latest}}