aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/app.py b/app.py
index b2e158d..868af3c 100644
--- a/app.py
+++ b/app.py
@@ -41,8 +41,10 @@ def index():
# Get a list of all articles.
for file in glob.glob("articles/*.md"):
try:
- articles += "\n<a href=\"" + file.replace(".md", "") + "\">" + \
- config[file.replace(".md", "").replace("articles/", "")]['Title'] + "</a>"
+ articles += "\n<li><a href=\"" + file.replace(".md", "") + "\">" + \
+ config[file.replace(".md", "").replace("articles/", "")]['Title'] + "</a>" \
+ + " - " + config[file.replace(".md", "").replace("articles/", "")]['Date'] + \
+ "</li>"
except KeyError:
return "<code>No config.ini entry! " + \
"Please create a config.ini entry for the %s article!</code>" % file