New selector for buttonBox, to allow use of galleries
This commit is contained in:
parent
19e86e2f50
commit
5009bf3eb4
1 changed files with 10 additions and 6 deletions
|
@ -70,11 +70,15 @@
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
<script src="{{ "js/baguetteBox.min.js" | relURL}}" rel="application/javascript"></script>
|
<script src="{{ "js/baguetteBox.min.js" | relURL}}" rel="application/javascript" async></script>
|
||||||
<script>baguetteBox.run('figure', {
|
<script>
|
||||||
captions: function(element) {
|
window.addEventListener('load', function() {
|
||||||
return element.getElementsByTagName('img')[0].title;
|
baguetteBox.run('figure,.gallery', {
|
||||||
}
|
captions: function(element) {
|
||||||
});</script>
|
return element.getElementsByTagName('img')[0].title;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue