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: