entries are in diary directory and still render
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
import datetime, os, re
|
||||
from bottle import error, route, run, static_file, template, TEMPLATE_PATH
|
||||
|
||||
loc = 'entries/'
|
||||
loc = 'diary/entries/'
|
||||
|
||||
def list_headlines(articles):
|
||||
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}
|
||||
return template('diary.tpl', info)
|
||||
|
||||
@route('/entries/<page:int>')
|
||||
@route('/diary/entries/<page:int>')
|
||||
def entry(page):
|
||||
info = {'css': 'box', 'title': 'blessfrey - credits', 'year': datetime.datetime.now()}
|
||||
abs_app_dir_path = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
Reference in New Issue
Block a user