Skip to content

Commit

Permalink
respect use_cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Jun 10, 2015
1 parent 74e31c4 commit b55e6e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nikola/data/themes/base/templates/gallery.tmpl
Expand Up @@ -98,7 +98,11 @@ if(typeof jQuery=='undefined') {
var headTag = document.getElementsByTagName("head")[0];
var jqTag = document.createElement('script');
jqTag.type = 'text/javascript';
jqTag.src = '//code.jquery.com/jquery-1.11.3.min.js';
% if use_cdn
jqTag.src = '//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js';
% else
jqTag.src = '/assets/js/jquery.min.js';
% endif
jqTag.onload = createGallery;
headTag.appendChild(jqTag);
} else {
Expand Down

0 comments on commit b55e6e9

Please sign in to comment.