summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-04-12 12:04:33 -0400
committerDrew DeVault <sir@cmpwn.com>2019-04-12 12:04:33 -0400
commitf44d62d8603bcde73a92d5084369cb8fe1c5b200 (patch)
treea4f8414b56579b7ad98ade791285adbf20e83711
parent859a55460571054a224edb1c98533dc5ee2272bc (diff)
Fix pages with no frontmatter
-rw-r--r--mansrht/blueprints/html.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mansrht/blueprints/html.py b/mansrht/blueprints/html.py
index a39c6fe..2b93c4a 100644
--- a/mansrht/blueprints/html.py
+++ b/mansrht/blueprints/html.py
@@ -60,6 +60,7 @@ def content(repo, path, wiki=None, is_root=False, **kwargs):
if blob.is_binary:
abort(404)
md = blob.data.decode()
+ frontmatter = dict()
if md.startswith("---\n"):
try:
end = md.index("---\n\n", 1)