Skip to content

Commit

Permalink
pass photo array to templates for degradation
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Jun 10, 2015
1 parent 8e4b1e6 commit 74e31c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nikola/plugins/task/galleries.py
Expand Up @@ -556,6 +556,7 @@ def url_from_path(p):
'h': h
},
})
context['photo_array'] = photo_array
self.site.render_template(template_name, index_name, context)
with codecs.open(json_name, 'wb', 'utf8') as outf:
json.dump(photo_array, outf)
Expand Down

0 comments on commit 74e31c4

Please sign in to comment.