From 8a6df0e4bf1ce98495a65fe1b9955cc0bca60290 Mon Sep 17 00:00:00 2001 From: andis Date: Thu, 2 Feb 2017 09:38:38 +0100 Subject: [PATCH] small imprv --- cont.py | 5 +++-- templates/post.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cont.py b/cont.py index f76e0ad..8fd0a67 100644 --- a/cont.py +++ b/cont.py @@ -78,8 +78,9 @@ def post(name='index'): spi=[] if not page is None: - page = page_defaults(page,is_index,path) - return render_template(page["template"], ld=ld, post=page, sp=sp, spi=spi, path=path) + page_defaults(page,is_index,path) + app.logger.info("Render Template"+page["template"] +"for "+path) + return render_template(page["template"], ld=ld, post=page, sp=sp, spi=spi, pth=path) if os.path.exists('{}/{}'.format(FLATPAGES_ROOT,path)): return send_from_directory(FLATPAGES_ROOT,path) diff --git a/templates/post.html b/templates/post.html index 4771ab7..0670bdf 100644 --- a/templates/post.html +++ b/templates/post.html @@ -31,7 +31,7 @@ Files: