Skip to content

Commit 4038b19

Browse files
committedSep 3, 2018
Use the new baguetteBox snippet everywhere
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 5470b14 commit 4038b19

File tree

11 files changed

+22
-55
lines changed

11 files changed

+22
-55
lines changed
 

‎v8/bootblog-jinja/templates/base.tmpl

+2-5
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,11 @@
8080
<!-- end fancy dates -->
8181
{% block extra_js %}{% endblock %}
8282
<script>
83-
baguetteBox.run('a.reference:not(.islink)', {
83+
baguetteBox.run('div#content', {
84+
ignoreClass: 'islink',
8485
captions: function(element) {
8586
return element.getElementsByTagName('img')[0].alt;
8687
}});
87-
baguetteBox.run('img:not(.islink)', {
88-
captions: function(element) {
89-
return element.alt;
90-
}});
9188
</script>
9289
{{ body_end }}
9390
{{ template_hooks['body_end']() }}

‎v8/bootblog/templates/base.tmpl

+2-5
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,11 @@ ${base.late_load_js()}
8080
<!-- end fancy dates -->
8181
<%block name="extra_js"></%block>
8282
<script>
83-
baguetteBox.run('a.reference:not(.islink)', {
83+
baguetteBox.run('div#content', {
84+
ignoreClass: 'islink',
8485
captions: function(element) {
8586
return element.getElementsByTagName('img')[0].alt;
8687
}});
87-
baguetteBox.run('img:not(.islink)', {
88-
captions: function(element) {
89-
return element.alt;
90-
}});
9188
</script>
9289
${body_end}
9390
${template_hooks['body_end']()}

‎v8/bootstrap-jinja/templates/base.tmpl

+2-5
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,11 @@
8181
<!-- end fancy dates -->
8282
{% block extra_js %}{% endblock %}
8383
<script>
84-
baguetteBox.run('a.reference:not(.islink)', {
84+
baguetteBox.run('div#content', {
85+
ignoreClass: 'islink',
8586
captions: function(element) {
8687
return element.getElementsByTagName('img')[0].alt;
8788
}});
88-
baguetteBox.run('img:not(.islink)', {
89-
captions: function(element) {
90-
return element.alt;
91-
}});
9289
</script>
9390
{{ body_end }}
9491
{{ template_hooks['body_end']() }}

‎v8/bootstrap/templates/base.tmpl

+2-5
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,11 @@ ${base.late_load_js()}
8181
<!-- end fancy dates -->
8282
<%block name="extra_js"></%block>
8383
<script>
84-
baguetteBox.run('a.reference:not(.islink)', {
84+
baguetteBox.run('div#content', {
85+
ignoreClass: 'islink',
8586
captions: function(element) {
8687
return element.getElementsByTagName('img')[0].alt;
8788
}});
88-
baguetteBox.run('img:not(.islink)', {
89-
captions: function(element) {
90-
return element.alt;
91-
}});
9289
</script>
9390
${body_end}
9491
${template_hooks['body_end']()}

‎v8/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']() }}

‎v8/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']()}

‎v8/cadair/templates/base.tmpl

+2-5
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,11 @@ fancydates(${date_fanciness}, ${js_date_format});
9191
</script>
9292
<!-- end fancy dates -->
9393
<script>
94-
baguetteBox.run('a.reference:not(.islink)', {
94+
baguetteBox.run('div#content', {
95+
ignoreClass: 'islink',
9596
captions: function(element) {
9697
return element.getElementsByTagName('img')[0].alt;
9798
}});
98-
baguetteBox.run('img:not(.islink)', {
99-
captions: function(element) {
100-
return element.alt;
101-
}});
10299
</script>
103100
<!-- Abstract hide/show
104101
<script src"/assets/js/div_toggle.js"></script>

‎v8/material-theme/templates/base.tmpl

+2-5
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,11 @@
110110
<!-- end fancy dates -->
111111
{% block extra_js %}{% endblock %}
112112
<script>
113-
baguetteBox.run('a.reference:not(.islink)', {
113+
baguetteBox.run('div#content', {
114+
ignoreClass: 'islink',
114115
captions: function(element) {
115116
return element.getElementsByTagName('img')[0].alt;
116117
}});
117-
baguetteBox.run('img:not(.islink)', {
118-
captions: function(element) {
119-
return element.alt;
120-
}});
121118
</script>
122119
{{ body_end }}
123120
{{ template_hooks['body_end']() }}

‎v8/monospace/templates/base.tmpl

+2-5
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,11 @@ ${template_hooks['extra_head']()}
4141
</div>
4242
${base.late_load_js()}
4343
<script>
44-
baguetteBox.run('a.reference:not(.islink)', {
44+
baguetteBox.run('div#content', {
45+
ignoreClass: 'islink',
4546
captions: function(element) {
4647
return element.getElementsByTagName('img')[0].alt;
4748
}});
48-
baguetteBox.run('img:not(.islink)', {
49-
captions: function(element) {
50-
return element.alt;
51-
}});
5249
</script>
5350
<%block name="extra_js"></%block>
5451
${body_end}

‎v8/oldfashioned/templates/base.tmpl

+2-5
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,11 @@ ${base.late_load_js()}
6363
<!-- end fancy dates -->
6464
<%block name="extra_js"></%block>
6565
<script>
66-
baguetteBox.run('a.reference:not(.islink)', {
66+
baguetteBox.run('div#content', {
67+
ignoreClass: 'islink',
6768
captions: function(element) {
6869
return element.getElementsByTagName('img')[0].alt;
6970
}});
70-
baguetteBox.run('img:not(.islink)', {
71-
captions: function(element) {
72-
return element.alt;
73-
}});
7471
</script>
7572
${body_end}
7673
${template_hooks['body_end']()}

‎v8/readable/templates/base.tmpl

+2-5
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,11 @@ ${template_hooks['extra_head']()}
8484
});
8585
</script>
8686
<script>
87-
baguetteBox.run('a.reference:not(.islink)', {
87+
baguetteBox.run('div#content', {
88+
ignoreClass: 'islink',
8889
captions: function(element) {
8990
return element.getElementsByTagName('img')[0].alt;
9091
}});
91-
baguetteBox.run('img:not(.islink)', {
92-
captions: function(element) {
93-
return element.alt;
94-
}});
9592
</script>
9693
${body_end}
9794
${template_hooks['body_end']()}

0 commit comments

Comments
 (0)
Please sign in to comment.