Skip to content
Permalink
Browse files

Create a compiler_meta dict if there isn’t any

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 22, 2015
1 parent 7031c54 commit e7b5b79207dc0653203e56265967152ed83abf4e
Showing with 2 additions and 0 deletions.
  1. +2 −0 nikola/post.py
@@ -976,6 +976,8 @@ def get_meta(post, file_metadata_regexp=None, unslugify_titles=False, lang=None)
file_metadata_regexp,
unslugify_titles))

compiler_meta = {}

if getattr(post, 'compiler', None):
compiler_meta = post.compiler.read_metadata(post, file_metadata_regexp, unslugify_titles, lang)
meta.update(compiler_meta)

0 comments on commit e7b5b79

Please sign in to comment.
You can’t perform that action at this time.