Skip to content
Permalink
Browse files

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 e971b1ce14cd7318ec14522b0725803e1544ba17
Showing with 2 additions and 0 deletions.
  1. +2 −0 nikola/plugins/task/posts.py
@@ -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:'):

0 comments on commit e971b1c

Please sign in to comment.
You can’t perform that action at this time.