diff options
Diffstat (limited to '')
-rw-r--r-- | app.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -44,10 +44,10 @@ def index(): files.sort(key=os.path.getctime) for file in files[::-1]: try: - articles += "\n<li><a href=\"" + file.replace(".md", "") + "\">" + \ - config[file.replace(".md", "").replace("articles/", "")]['Title'] + "</a>" \ - + " - " + config[file.replace(".md", "").replace("articles/", "")]['Date'] + \ - "</li>" + articles += render_template('list.html', file = file.replace(".md", ""), + date = config[file.replace(".md", "").replace("articles/", "")]['Date'], + article = config[ \ + file.replace(".md", "").replace("articles/", "")]['Title']) except KeyError: return "<code>No config.ini entry! " + \ "Please create a config.ini entry for the %s article!</code>" % file |