From 99fa656d4261aee51774fad9db98947b8fb56c14 Mon Sep 17 00:00:00 2001 From: Matt Love Date: Tue, 9 Jul 2019 16:29:48 -0700 Subject: [PATCH] =?UTF-8?q?:wrench:=20TOML=20=E2=86=92=20YAML?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hyperglass/render/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyperglass/render/__init__.py b/hyperglass/render/__init__.py index 15f81ce..a3f19d8 100644 --- a/hyperglass/render/__init__.py +++ b/hyperglass/render/__init__.py @@ -108,7 +108,7 @@ def info(file_name): if file.exists(): with file.open(mode="r") as file_raw: file_read = file_raw.read() - _, frontmatter, content = file_read.split("+++") + frontmatter, content = file_read.split("---") frontmatter_dict[file_name] = toml.loads(frontmatter) md_template_fm = jinja2.Environment(loader=jinja2.BaseLoader).from_string( frontmatter @@ -151,7 +151,7 @@ def details(file_name): if file.exists(): with file.open(mode="r") as file_raw: file_read = file_raw.read() - _, frontmatter, content = file_read.split("+++") + frontmatter, content = file_read.split("---") md_template_fm = jinja2.Environment(loader=jinja2.BaseLoader).from_string( frontmatter )