From 2bd0d3db47ea08d3012233d2e18707fd74f1f988 Mon Sep 17 00:00:00 2001 From: Guy Godfroy Date: Fri, 4 Dec 2020 17:19:34 +0100 Subject: [PATCH] we need to fetch the template anyway --- config.py.example | 2 +- geminer.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config.py.example b/config.py.example index 7f86ecb..d3c49cd 100644 --- a/config.py.example +++ b/config.py.example @@ -106,7 +106,7 @@ index_props = [ "property": "author", "list": False, "item_dir": "authors", - "item_tpl"; "author", + "item_tpl": "author", "index_name": "authors", "index_tpl": "authors_index" } diff --git a/geminer.py b/geminer.py index 04fa2b2..e551ca8 100755 --- a/geminer.py +++ b/geminer.py @@ -67,7 +67,10 @@ for dirname, subdirlist, mdlist in os.walk('.'): # Parse the YAML header meta = frontmatter.parse(mdtext)[0] - + + # Extract template + post["template"] = meta.get("template", config.default_post_template) + # Extract post properties for prop in config.post_props: post[prop] = meta.get(prop, None)