|
|
|
@ -121,7 +121,7 @@ def diary2():
|
|
|
|
|
@route('/diary/<page:int>')
|
|
|
|
|
def diary(page):
|
|
|
|
|
"""diary 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}
|
|
|
|
|
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, 'cluster': 3, 'page': page}
|
|
|
|
|
return template('diary.tpl', info)
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
|