Skip to content

Commit

Permalink
Fix support for islink class (See Issue #1536)
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Alsina committed Dec 26, 2017
1 parent 0ad418e commit 2f4e64c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions nikola/data/themes/bootstrap3/templates/base.tmpl
Expand Up @@ -87,10 +87,16 @@ ${base.late_load_js()}
</script>
<!-- end fancy dates -->
<%block name="extra_js"></%block>
<script>baguetteBox.run('a.reference', {
<script>
baguetteBox.run('a.reference:not(.islink)', {
captions: function(element) {
return element.getElementsByTagName('img')[0].alt;
}});</script>
}});
baguetteBox.run('img:not(.islink)', {
captions: function(element) {
return element.alt;
}});
</script>
${body_end}
${template_hooks['body_end']()}
</body>
Expand Down

0 comments on commit 2f4e64c

Please sign in to comment.