From a69c3215d784acc70890e1ee7d8c67cbf4e0e03f Mon Sep 17 00:00:00 2001 From: chimchooree Date: Wed, 7 Oct 2020 11:50:45 -0500 Subject: [PATCH] entries are in diary directory and still render --- src/{ => diary}/entries/200808.tpl | 0 src/{ => diary}/entries/200810.tpl | 0 src/{ => diary}/entries/200813.tpl | 0 src/{ => diary}/entries/200815.tpl | 0 src/{ => diary}/entries/200918.tpl | 0 src/{ => diary}/entries/200919.tpl | 0 src/{ => diary}/entries/200926.tpl | 0 src/{ => diary}/entries/201001.tpl | 0 src/{ => diary}/entries/201003.tpl | 0 src/{ => diary}/entries/raw/article-to-html.py | 0 src/{ => diary}/entries/raw/entries/200808.tpl | 0 src/{ => diary}/entries/raw/entries/200810.tpl | 0 src/{ => diary}/entries/raw/entries/200813.tpl | 0 src/{ => diary}/entries/raw/entries/200815.tpl | 0 src/{ => diary}/entries/raw/entries/200918.tpl | 0 src/{ => diary}/entries/raw/entries/200919.tpl | 0 src/{ => diary}/entries/raw/entries/200926.tpl | 0 src/{ => diary}/entries/raw/entries/201001.tpl | 0 src/{ => diary}/entries/raw/entries/201003.tpl | 0 src/{ => diary}/entries/raw/res/head.txt | 0 src/{ => diary}/entries/raw/res/tail.txt | 0 src/index.py | 4 ++-- 22 files changed, 2 insertions(+), 2 deletions(-) rename src/{ => diary}/entries/200808.tpl (100%) rename src/{ => diary}/entries/200810.tpl (100%) rename src/{ => diary}/entries/200813.tpl (100%) rename src/{ => diary}/entries/200815.tpl (100%) rename src/{ => diary}/entries/200918.tpl (100%) rename src/{ => diary}/entries/200919.tpl (100%) rename src/{ => diary}/entries/200926.tpl (100%) rename src/{ => diary}/entries/201001.tpl (100%) rename src/{ => diary}/entries/201003.tpl (100%) rename src/{ => diary}/entries/raw/article-to-html.py (100%) rename src/{ => diary}/entries/raw/entries/200808.tpl (100%) rename src/{ => diary}/entries/raw/entries/200810.tpl (100%) rename src/{ => diary}/entries/raw/entries/200813.tpl (100%) rename src/{ => diary}/entries/raw/entries/200815.tpl (100%) rename src/{ => diary}/entries/raw/entries/200918.tpl (100%) rename src/{ => diary}/entries/raw/entries/200919.tpl (100%) rename src/{ => diary}/entries/raw/entries/200926.tpl (100%) rename src/{ => diary}/entries/raw/entries/201001.tpl (100%) rename src/{ => diary}/entries/raw/entries/201003.tpl (100%) rename src/{ => diary}/entries/raw/res/head.txt (100%) rename src/{ => diary}/entries/raw/res/tail.txt (100%) 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__))