This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit f99aebd
1 parent 6df5331 commit f99aebd Copy full SHA for f99aebd
File tree 2 files changed +10
-4
lines changed
data/themes/bootstrap3/templates
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -68,12 +68,14 @@ lang="${lang}">
68
68
<%def name="late_load_js()">
69
69
%if use_bundles:
70
70
%if use_cdn:
71
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
72
- <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
71
+ % for url in cdn_js_urls:
72
+ <script src="${url}"></script>
73
+ % endfor
73
74
%endif
74
75
<script src="/assets/js/all.js"></script>
75
76
%else:
76
77
%if use_cdn:
78
+ FOO
77
79
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
78
80
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
79
81
%else:
@@ -94,12 +96,14 @@ lang="${lang}">
94
96
<%def name="html_stylesheets()">
95
97
%if use_bundles:
96
98
%if use_cdn:
97
- <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
99
+ % for url in cdn_css_urls:
100
+ <link href="${url}" rel="stylesheet">
101
+ % endfor
98
102
%endif
99
103
<link href="/assets/css/all.css" rel="stylesheet" type="text/css">
100
104
%else:
101
105
%if use_cdn:
102
- <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
106
+ - <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
103
107
%else:
104
108
<link href="/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css">
105
109
%endif
Original file line number Diff line number Diff line change @@ -132,6 +132,8 @@ def build_bundle(output, inputs):
132
132
t_files .append (i )
133
133
134
134
_files = t_files
135
+ self .site .GLOBAL_CONTEXT ['cdn_js_urls' ] = self .cdn_js_urls
136
+ self .site .GLOBAL_CONTEXT ['cdn_css_urls' ] = self .cdn_css_urls
135
137
136
138
output_path = os .path .join (kw ['output_folder' ], name )
137
139
dname = os .path .dirname (name )
You can’t perform that action at this time.
0 commit comments