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')

View File

@ -350,6 +350,21 @@ div#content .inner ul.DREAD {
margin: 0 !important;
}
.system-messages {
background-color: rgba(171, 204, 113, 0.7);
border: 1px dashed rgb(208, 14, 14);
border-radius: 5px;
margin: 5px;
padding: 5px;
}
.system-messages > h1 {
font-size: 1.2em !important;
text-align: left !important;
}
.system-messages > h1:after {
content: " (Please contact the website administrator)";
}
/*
* Footer
*/