all routes have a css field for info dictionary so their pages display css

small-nav
Mimi Momo 4 years ago
parent 72b760dc17
commit 7b6a095fbf

@ -89,19 +89,19 @@ def index():
@route('/game')
def game():
"""game page"""
info = {'title': 'blessfrey - about the game', 'year': datetime.datetime.now()}
info = {'css': 'game', 'title': 'blessfrey - about the game', 'year': datetime.datetime.now()}
return template('game.tpl', info)
@route('/presskit')
def presskit():
"""press page"""
info = {'title': 'blessfrey - presskit', 'year': datetime.datetime.now()}
info = {'css': 'presskit', 'title': 'blessfrey - presskit', 'year': datetime.datetime.now()}
return template('presskit.tpl', info)
@route('/diary')
def diary():
"""diary page"""
info = {'title': 'blessfrey - about the game', 'year': datetime.datetime.now(), 'snippets': list_snippets(sort_files(gather_files())), 'latest': make_latest()}
info = {'css': 'diary', 'title': 'blessfrey - about the game', 'year': datetime.datetime.now(), 'snippets': list_snippets(sort_files(gather_files())), 'latest': make_latest()}
return template('diary.tpl', info)
if __name__ == '__main__':

Loading…
Cancel
Save