Skip to content

Commit

Permalink
Create a compiler_meta dict if there isn’t any
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 22, 2015
1 parent 7031c54 commit e7b5b79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nikola/post.py
Expand Up @@ -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)
Expand Down

0 comments on commit e7b5b79

Please sign in to comment.