Skip to content

Commit

Permalink
fix #1625 -- ignore post meta in two-file posts
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Mar 6, 2015
1 parent a4ff446 commit 41356a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nikola/post.py
Expand Up @@ -933,12 +933,14 @@ def get_meta(post, file_metadata_regexp=None, unslugify_titles=False, lang=None)
file_metadata_regexp,
unslugify_titles))

meta.update(get_metadata_from_file(post.source_path, config, lang))

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

if not post.is_two_file:
# Meta file has precedence over file, which can contain garbage.
meta.update(get_metadata_from_file(post.source_path, config, lang))

if lang is None:
# Only perform these checks for the default language

Expand Down

0 comments on commit 41356a1

Please sign in to comment.