Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Avoiding Nikola trying to cache posts which aren't written anyway.
  • Loading branch information
felixfontein committed Sep 6, 2015
1 parent 27dca29 commit e3d1f1d
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']:
return
# Extra config dependencies picked from config
for p in post.fragment_deps(lang):
if p.startswith('####MAGIC####CONFIG:'):
Expand Down

0 comments on commit e3d1f1d

Please sign in to comment.