Skip to content

Commit

Permalink
fix #1319 -- rebuild posts when metadata changes
Browse files Browse the repository at this point in the history
Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska authored and ralsina committed Aug 17, 2014
1 parent c1d7967 commit 0a7b1be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Bugfixes
--------

* Allow + in slugs (Issue #1344)
* rebuild posts when metadata changes (Issue #1319)
* fix error message when tags that are too similar are found (Issues #1343, #1344)
* serve .svgz with content-encoding: gzip (Issue #1380)
* html5.js file for ancient IE now works outside of / (Issue #1372)
Expand Down
2 changes: 2 additions & 0 deletions nikola/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,10 @@ def deps(self, lang):
deps = []
if self.default_lang in self.translated_to:
deps.append(self.base_path)
deps.append(self.source_path)
if lang != self.default_lang:
deps += [get_translation_candidate(self.config, self.base_path, lang)]
deps += [get_translation_candidate(self.config, self.source_path, lang)]
return deps

def compile(self, lang):
Expand Down

0 comments on commit 0a7b1be

Please sign in to comment.