Skip to content

Commit

Permalink
jinja was not returning the template file itself as dependency for a …
Browse files Browse the repository at this point in the history
…template name
  • Loading branch information
ralsina committed Aug 16, 2016
1 parent 3159c4b commit c76b260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/plugins/template/jinja.py
Expand Up @@ -122,7 +122,7 @@ def template_deps(self, template_name):
"""Generate list of dependencies for a template."""
if self.dependency_cache.get(template_name) is None:
filename = self.lookup.loader.get_source(self.lookup, template_name)[1]
self.dependency_cache[template_name] = self.get_deps(filename)
self.dependency_cache[template_name] = [filename] + self.get_deps(filename)
return self.dependency_cache[template_name]

def get_template_path(self, template_name):
Expand Down

0 comments on commit c76b260

Please sign in to comment.