Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #2031 from getnikola/fix-untranslated-post-build
Avoiding Nikola trying to cache posts which aren't written anyway.
  • Loading branch information
Kwpolska committed Sep 6, 2015
2 parents b77baaa + 7b3609e commit e971b1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nikola/plugins/task/posts.py
Expand Up @@ -77,6 +77,8 @@ def tl_ch():
deps_dict = copy(kw)
deps_dict.pop('timeline')
for post in kw['timeline']:
if not post.is_translation_available(lang) and not self.site.config['SHOW_UNTRANSLATED_POSTS']:
continue
# Extra config dependencies picked from config
for p in post.fragment_deps(lang):
if p.startswith('####MAGIC####CONFIG:'):
Expand Down

0 comments on commit e971b1c

Please sign in to comment.