Skip to content
Permalink
Browse files
respect use_cdn
  • Loading branch information
ralsina committed Jun 10, 2015
1 parent 74e31c4 commit b55e6e9bb6986995c36a25151bfdd315bf6f6788
Showing with 5 additions and 1 deletion.
  1. +5 −1 nikola/data/themes/base/templates/gallery.tmpl
@@ -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 {

0 comments on commit b55e6e9

Please sign in to comment.