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)