Skip to content

Commit

Permalink
Fix to work with Python3
Browse files Browse the repository at this point in the history
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 93a1186
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -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
>
Expand Down Expand Up @@ -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)},
Expand All @@ -48,4 +48,4 @@
% endfor
});
}
</script>
</script>

0 comments on commit 93a1186

Please sign in to comment.