Skip to content

Commit

Permalink
Fix wrong baguetteBox selector in base theme (#3688)
Browse files Browse the repository at this point in the history
  • Loading branch information
gudzpoz committed May 13, 2023
1 parent 19e9952 commit 7f6ae4f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
New in master
=============

Bugfixes
--------

* Fix baguetteBox.js invoking in the base theme (Issue #3687)

New in v8.2.4
=============

Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/base-jinja/templates/base.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{% endif %}
{% block extra_js %}{% endblock %}
<script>
baguetteBox.run('div#content', {
baguetteBox.run('main#content', {
ignoreClass: 'islink',
captions: function(element){var i=element.getElementsByTagName('img')[0];return i===undefined?'':i.alt;}});
</script>
Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/base/templates/base.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ${template_hooks['extra_head']()}
% endif
<%block name="extra_js"></%block>
<script>
baguetteBox.run('div#content', {
baguetteBox.run('main#content', {
ignoreClass: 'islink',
captions: function(element){var i=element.getElementsByTagName('img')[0];return i===undefined?'':i.alt;}});
</script>
Expand Down

0 comments on commit 7f6ae4f

Please sign in to comment.