aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/data/themes/bootstrap3-jinja/templates/gallery.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'nikola/data/themes/bootstrap3-jinja/templates/gallery.tmpl')
-rw-r--r--nikola/data/themes/bootstrap3-jinja/templates/gallery.tmpl7
1 files changed, 4 insertions, 3 deletions
diff --git a/nikola/data/themes/bootstrap3-jinja/templates/gallery.tmpl b/nikola/data/themes/bootstrap3-jinja/templates/gallery.tmpl
index 00fda11..cd9a5ed 100644
--- a/nikola/data/themes/bootstrap3-jinja/templates/gallery.tmpl
+++ b/nikola/data/themes/bootstrap3-jinja/templates/gallery.tmpl
@@ -17,7 +17,7 @@
{% if folders %}
<ul>
{% for folder, ftitle in folders %}
- <li><a href="{{ folder }}"><i class="glyphicon glyphicon-folder-open"></i>&nbsp;{{ ftitle }}</a></li>
+ <li><a href="{{ folder }}"><i class="glyphicon glyphicon-folder-open"></i>&nbsp;{{ ftitle|e }}</a></li>
{% endfor %}
</ul>
{% endif %}
@@ -27,8 +27,8 @@
<noscript>
<ul class="thumbnails">
{% for image in photo_array %}
- <li><a href="{{ image['url'] }}" class="thumbnail image-reference" title="{{ image['title'] }}">
- <img src="{{ image['url_thumb'] }}" alt="{{ image['title'] }}" /></a>
+ <li><a href="{{ image['url'] }}" class="thumbnail image-reference" title="{{ image['title']|e }}">
+ <img src="{{ image['url_thumb'] }}" alt="{{ image['title']|e }}" /></a>
{% endfor %}
</ul>
</noscript>
@@ -90,5 +90,6 @@ $("#gallery_container").flowr({
}
});
$("a.image-reference").colorbox({rel:"gal", maxWidth:"100%",maxHeight:"100%",scalePhotos:true});
+$('a.image-reference[href="'+window.location.hash.substring(1,1000)+'"]').click();
</script>
{% endblock %}