Skip to content
Permalink
Browse files

Fix to work with Python3

As Nikola is dropping support for Python2 there is no point in having a not merged plugin working on 2 and not on 3.
  • Loading branch information...
jjconti committed Oct 2, 2015
1 parent de4fa4f commit 93a1186f5effccedeca94ccee8134d8eb0cdda8d
Showing with 4 additions and 4 deletions.
  1. +4 −4 v7/nanogallery_directive/templates/mako/embedded-nanogallery.tmpl
@@ -3,7 +3,7 @@
<div id="nanoGallery3">
% for image in nanogallery_content:
<a href="${image['href']}"
% for k, v in image['data'].iteritems():
% for k, v in image['data'].items():
data-${k}="${v}"
% endfor
>
@@ -35,8 +35,8 @@
// We need window.onload here because jQuery is not loaded yet
window.onload = function() {
$("#nanoGallery3").nanoGallery({
% for k, v in options.iteritems():
% if isinstance(v, unicode):
% for k, v in options.items():
% if isinstance(v, str):
${k}: '${v}',
% elif isinstance(v, dict):
${k}: ${jsfy(v)},
@@ -48,4 +48,4 @@
% endfor
});
}
</script>
</script>

0 comments on commit 93a1186

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