Don't leak info in blog errors, make them less scary
This commit is contained in:
@ -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')
|
||||
|
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user