Skip to content

Commit 6a50bbe

Browse files
committedMay 5, 2015
fix .islink
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent e1c0d78 commit 6a50bbe

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed
 

‎CHANGES.txt

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Features
3333
Bugfixes
3434
--------
3535

36+
* Make ``.islink`` work properly (via Issue #1536)
3637
* RSS_LINKS_APPEND_QUERY not working in RSS feeds for tags
3738
* `nikola check -l` didn’t scan posts
3839
* Don’t use sets for ``FAVICONS`` (Issue #1674)

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
{{ template_hooks['page_footer']() }}
7575
</div>
7676
{{ base.late_load_js() }}
77-
<script>$('a.image-reference:not(.islink)').colorbox({rel:"gal",maxWidth:"100%",maxHeight:"100%",scalePhotos:true});</script>
77+
<script>$('a.image-reference:not(.islink) img:not(.islink)').parent().colorbox({rel:"gal",maxWidth:"100%",maxHeight:"100%",scalePhotos:true});</script>
7878
<!-- fancy dates -->
7979
<script>
8080
moment.locale("{{ momentjs_locales[lang] }}");

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ ${template_hooks['extra_head']()}
7474
${template_hooks['page_footer']()}
7575
</div>
7676
${base.late_load_js()}
77-
<script>$('a.image-reference:not(.islink)').colorbox({rel:"gal",maxWidth:"100%",maxHeight:"100%",scalePhotos:true});</script>
77+
<script>$('a.image-reference:not(.islink) img:not(.islink)').parent().colorbox({rel:"gal",maxWidth:"100%",maxHeight:"100%",scalePhotos:true});</script>
7878
<!-- fancy dates -->
7979
<script>
8080
moment.locale("${momentjs_locales[lang]}");

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
</div>
7676

7777
{{ base.late_load_js() }}
78-
<script>$('a.image-reference:not(.islink)').colorbox({rel:"gal",maxWidth:"100%",maxHeight:"100%",scalePhotos:true});</script>
78+
<script>$('a.image-reference:not(.islink) img:not(.islink)').parent().colorbox({rel:"gal",maxWidth:"100%",maxHeight:"100%",scalePhotos:true});</script>
7979
<!-- fancy dates -->
8080
<script>
8181
moment.locale("{{ momentjs_locales[lang] }}");

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ ${template_hooks['extra_head']()}
7575
</div>
7676

7777
${base.late_load_js()}
78-
<script>$('a.image-reference:not(.islink)').colorbox({rel:"gal",maxWidth:"100%",maxHeight:"100%",scalePhotos:true});</script>
78+
<script>$('a.image-reference:not(.islink) img:not(.islink)').parent().colorbox({rel:"gal",maxWidth:"100%",maxHeight:"100%",scalePhotos:true});</script>
7979
<!-- fancy dates -->
8080
<script>
8181
moment.locale("${momentjs_locales[lang]}");

0 commit comments

Comments
 (0)
Please sign in to comment.