Skip to content

Commit 63b3ba9

Browse files
committed
fix #2146
1 parent 4736322 commit 63b3ba9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGES.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
New in Master
22
=============
33

4+
Features
5+
--------
6+
7+
* Automatically open gallery images colorbox based on URL fragment (Issue #2146)
8+
49
Bugfixes
510
--------
611

nikola/data/themes/bootstrap3/templates/gallery.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,6 @@ $("#gallery_container").flowr({
9090
}
9191
});
9292
$("a.image-reference").colorbox({rel:"gal", maxWidth:"100%",maxHeight:"100%",scalePhotos:true});
93+
$('a.image-reference[href="'+window.location.hash.substring(1,1000)+'"]').click();
9394
</script>
9495
</%block>

0 commit comments

Comments
 (0)