Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3f70110

Browse files
author
Roberto Alsina
committedMar 20, 2018
BaguetteBox is pretty smart about how to create images in the gallery.
1 parent 9dad955 commit 3f70110

File tree

5 files changed

+15
-20
lines changed

5 files changed

+15
-20
lines changed
 

‎nikola/data/themes/base-jinja/templates/base.tmpl

+2-5
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,11 @@
2222
{{ base.late_load_js() }}
2323
{% block extra_js %}{% endblock %}
2424
<script>
25-
baguetteBox.run('a.reference:not(.islink)', {
25+
baguetteBox.run('div#content', {
26+
ignoreClass: 'islink',
2627
captions: function(element) {
2728
return element.getElementsByTagName('img')[0].alt;
2829
}});
29-
baguetteBox.run('img:not(.islink)', {
30-
captions: function(element) {
31-
return element.alt;
32-
}});
3330
</script>
3431
{{ body_end }}
3532
{{ template_hooks['body_end']() }}

‎nikola/data/themes/base-jinja/templates/comments_helper.tmpl

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
{% import 'comments_helper_muut.tmpl' as muut with context %}
77
{% import 'comments_helper_facebook.tmpl' as facebook with context %}
88
{% import 'comments_helper_isso.tmpl' as isso with context %}
9+
{% import 'comments_helper_commento.tmpl' as commento with context %}
910

1011
{% macro comment_form(url, title, identifier) %}
1112
{% if comment_system == 'disqus' %}
@@ -20,6 +21,8 @@
2021
{{ facebook.comment_form(url, title, identifier) }}
2122
{% elif comment_system == 'isso' %}
2223
{{ isso.comment_form(url, title, identifier) }}
24+
{% elif comment_system == 'commento' %}
25+
{{ commento.comment_form(url, title, identifier) }}
2326
{% endif %}
2427
{% endmacro %}
2528

@@ -36,6 +39,8 @@
3639
{{ facebook.comment_link(link, identifier) }}
3740
{% elif comment_system == 'isso' %}
3841
{{ isso.comment_link(link, identifier) }}
42+
{% elif comment_system == 'commento' %}
43+
{{ commento.comment_link(link, identifier) }}
3944
{% endif %}
4045
{% endmacro %}
4146

@@ -52,5 +57,7 @@
5257
{{ facebook.comment_link_script() }}
5358
{% elif comment_system == 'isso' %}
5459
{{ isso.comment_link_script() }}
60+
{% elif comment_system == 'commento' %}
61+
{{ commento.comment_link_script() }}
5562
{% endif %}
5663
{% endmacro %}

‎nikola/data/themes/base/templates/base.tmpl

+2-5
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,11 @@ ${template_hooks['extra_head']()}
2222
${base.late_load_js()}
2323
<%block name="extra_js"></%block>
2424
<script>
25-
baguetteBox.run('a.reference:not(.islink)', {
25+
baguetteBox.run('div#content', {
26+
ignoreClass: 'islink',
2627
captions: function(element) {
2728
return element.getElementsByTagName('img')[0].alt;
2829
}});
29-
baguetteBox.run('img:not(.islink)', {
30-
captions: function(element) {
31-
return element.alt;
32-
}});
3330
</script>
3431
${body_end}
3532
${template_hooks['body_end']()}

‎nikola/data/themes/bootstrap3-jinja/templates/base.tmpl

+2-5
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,11 @@
8383
<!-- end fancy dates -->
8484
{% block extra_js %}{% endblock %}
8585
<script>
86-
baguetteBox.run('a.reference:not(.islink)', {
86+
baguetteBox.run('div#content', {
87+
ignoreClass: 'islink',
8788
captions: function(element) {
8889
return element.getElementsByTagName('img')[0].alt;
8990
}});
90-
baguetteBox.run('img:not(.islink)', {
91-
captions: function(element) {
92-
return element.alt;
93-
}});
9491
</script>
9592
{{ body_end }}
9693
{{ template_hooks['body_end']() }}

‎nikola/data/themes/bootstrap3/templates/base.tmpl

+2-5
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,11 @@ ${base.late_load_js()}
8383
<!-- end fancy dates -->
8484
<%block name="extra_js"></%block>
8585
<script>
86-
baguetteBox.run('a.reference:not(.islink)', {
86+
baguetteBox.run('div#content', {
87+
ignoreClass: 'islink',
8788
captions: function(element) {
8889
return element.getElementsByTagName('img')[0].alt;
8990
}});
90-
baguetteBox.run('img:not(.islink)', {
91-
captions: function(element) {
92-
return element.alt;
93-
}});
9491
</script>
9592
${body_end}
9693
${template_hooks['body_end']()}

0 commit comments

Comments
 (0)
Please sign in to comment.