Remove BLOG_DIR from blog errors without breaking the blog

This commit is contained in:
str4d
2014-11-15 23:54:06 +00:00
parent 0c9a7b9dd9
commit 4100b808d4
2 changed files with 4 additions and 2 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", writer_name="html")
return publish_parts(source=rendered_content, source_path=BLOG_DIR, writer_name="html")
def get_metadata_from_meta(meta):
metaLines = meta.split('\n')