diff --git a/src/entries/200808.tpl b/src/diary/entries/200808.tpl similarity index 100% rename from src/entries/200808.tpl rename to src/diary/entries/200808.tpl diff --git a/src/entries/200810.tpl b/src/diary/entries/200810.tpl similarity index 100% rename from src/entries/200810.tpl rename to src/diary/entries/200810.tpl diff --git a/src/entries/200813.tpl b/src/diary/entries/200813.tpl similarity index 100% rename from src/entries/200813.tpl rename to src/diary/entries/200813.tpl diff --git a/src/entries/200815.tpl b/src/diary/entries/200815.tpl similarity index 100% rename from src/entries/200815.tpl rename to src/diary/entries/200815.tpl diff --git a/src/entries/200918.tpl b/src/diary/entries/200918.tpl similarity index 100% rename from src/entries/200918.tpl rename to src/diary/entries/200918.tpl diff --git a/src/entries/200919.tpl b/src/diary/entries/200919.tpl similarity index 100% rename from src/entries/200919.tpl rename to src/diary/entries/200919.tpl diff --git a/src/entries/200926.tpl b/src/diary/entries/200926.tpl similarity index 100% rename from src/entries/200926.tpl rename to src/diary/entries/200926.tpl diff --git a/src/entries/201001.tpl b/src/diary/entries/201001.tpl similarity index 100% rename from src/entries/201001.tpl rename to src/diary/entries/201001.tpl diff --git a/src/entries/201003.tpl b/src/diary/entries/201003.tpl similarity index 100% rename from src/entries/201003.tpl rename to src/diary/entries/201003.tpl diff --git a/src/entries/raw/article-to-html.py b/src/diary/entries/raw/article-to-html.py similarity index 100% rename from src/entries/raw/article-to-html.py rename to src/diary/entries/raw/article-to-html.py diff --git a/src/entries/raw/entries/200808.tpl b/src/diary/entries/raw/entries/200808.tpl similarity index 100% rename from src/entries/raw/entries/200808.tpl rename to src/diary/entries/raw/entries/200808.tpl diff --git a/src/entries/raw/entries/200810.tpl b/src/diary/entries/raw/entries/200810.tpl similarity index 100% rename from src/entries/raw/entries/200810.tpl rename to src/diary/entries/raw/entries/200810.tpl diff --git a/src/entries/raw/entries/200813.tpl b/src/diary/entries/raw/entries/200813.tpl similarity index 100% rename from src/entries/raw/entries/200813.tpl rename to src/diary/entries/raw/entries/200813.tpl diff --git a/src/entries/raw/entries/200815.tpl b/src/diary/entries/raw/entries/200815.tpl similarity index 100% rename from src/entries/raw/entries/200815.tpl rename to src/diary/entries/raw/entries/200815.tpl diff --git a/src/entries/raw/entries/200918.tpl b/src/diary/entries/raw/entries/200918.tpl similarity index 100% rename from src/entries/raw/entries/200918.tpl rename to src/diary/entries/raw/entries/200918.tpl diff --git a/src/entries/raw/entries/200919.tpl b/src/diary/entries/raw/entries/200919.tpl similarity index 100% rename from src/entries/raw/entries/200919.tpl rename to src/diary/entries/raw/entries/200919.tpl diff --git a/src/entries/raw/entries/200926.tpl b/src/diary/entries/raw/entries/200926.tpl similarity index 100% rename from src/entries/raw/entries/200926.tpl rename to src/diary/entries/raw/entries/200926.tpl diff --git a/src/entries/raw/entries/201001.tpl b/src/diary/entries/raw/entries/201001.tpl similarity index 100% rename from src/entries/raw/entries/201001.tpl rename to src/diary/entries/raw/entries/201001.tpl diff --git a/src/entries/raw/entries/201003.tpl b/src/diary/entries/raw/entries/201003.tpl similarity index 100% rename from src/entries/raw/entries/201003.tpl rename to src/diary/entries/raw/entries/201003.tpl diff --git a/src/entries/raw/res/head.txt b/src/diary/entries/raw/res/head.txt similarity index 100% rename from src/entries/raw/res/head.txt rename to src/diary/entries/raw/res/head.txt diff --git a/src/entries/raw/res/tail.txt b/src/diary/entries/raw/res/tail.txt similarity index 100% rename from src/entries/raw/res/tail.txt rename to src/diary/entries/raw/res/tail.txt diff --git a/src/index.py b/src/index.py index 059f56f..c5bb48a 100644 --- a/src/index.py +++ b/src/index.py @@ -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/') +@route('/diary/entries/') def entry(page): info = {'css': 'box', 'title': 'blessfrey - credits', 'year': datetime.datetime.now()} abs_app_dir_path = os.path.dirname(os.path.realpath(__file__))