Don't leak info in blog errors, make them less scary

This commit is contained in:
str4d
2014-10-22 20:53:54 +00:00
parent fb88d02ba9
commit 814b537775
2 changed files with 16 additions and 1 deletions

View File

@ -104,7 +104,7 @@ def render_blog_post(slug):
rendered_content = render_template_string(content)
# publish the post with docutils
return publish_parts(source=rendered_content, source_path=BLOG_DIR, writer_name="html")
return publish_parts(source=rendered_content, source_path="BLOG", writer_name="html")
def get_metadata_from_meta(meta):
metaLines = meta.split('\n')