|
|
@ -1,7 +1,7 @@
|
|
|
|
import datetime, os, re
|
|
|
|
import datetime, os, re
|
|
|
|
from bottle import error, route, run, static_file, template, TEMPLATE_PATH
|
|
|
|
from bottle import error, route, run, static_file, template, TEMPLATE_PATH
|
|
|
|
|
|
|
|
|
|
|
|
loc = 'entries/'
|
|
|
|
loc = 'diary/entries/'
|
|
|
|
|
|
|
|
|
|
|
|
def list_headlines(articles):
|
|
|
|
def list_headlines(articles):
|
|
|
|
result = []
|
|
|
|
result = []
|
|
|
@ -134,7 +134,7 @@ def diary(page):
|
|
|
|
info = {'css': 'diary', 'title': 'blessfrey - developer diary', 'year': datetime.datetime.now(), 'snippets': list_snippets(sort_files(gather_files())), 'latest': list_headlines(sort_files(gather_files())[0:5]), 'total': len(gather_files()), 'limit': 4, 'cluster': 3, 'page': page}
|
|
|
|
info = {'css': 'diary', 'title': 'blessfrey - developer diary', 'year': datetime.datetime.now(), 'snippets': list_snippets(sort_files(gather_files())), 'latest': list_headlines(sort_files(gather_files())[0:5]), 'total': len(gather_files()), 'limit': 4, 'cluster': 3, 'page': page}
|
|
|
|
return template('diary.tpl', info)
|
|
|
|
return template('diary.tpl', info)
|
|
|
|
|
|
|
|
|
|
|
|
@route('/entries/<page:int>')
|
|
|
|
@route('/diary/entries/<page:int>')
|
|
|
|
def entry(page):
|
|
|
|
def entry(page):
|
|
|
|
info = {'css': 'box', 'title': 'blessfrey - credits', 'year': datetime.datetime.now()}
|
|
|
|
info = {'css': 'box', 'title': 'blessfrey - credits', 'year': datetime.datetime.now()}
|
|
|
|
abs_app_dir_path = os.path.dirname(os.path.realpath(__file__))
|
|
|
|
abs_app_dir_path = os.path.dirname(os.path.realpath(__file__))
|
|
|
|