diff options
-rw-r--r-- | app.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |