Skip to content
This repository was archived by the owner on Aug 15, 2018. It is now read-only.

Commit 5a03a17

Browse files
committed
Merge pull request #1011 from afc163/master
fix seajs paths in demo layout, fix #1008
2 parents d5115c8 + 6e4a6b6 commit 5a03a17

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/theme/templates/history.html

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ <h1 class="entry-title">{{post.title}}</h1>
1111
</div>
1212
</article>
1313
<script>
14+
seajs.config({
15+
paths: {
16+
'jquery': 'http://static.alipayobjects.com/jquery'
17+
}
18+
});
1419
seajs.use('jquery/jquery/1.7.2/jquery', function($) {
1520
$('.content-wrapper code').each(function(index, item) {
1621
item = $(item);

lib/theme/templates/snippet/head.html

-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
<script>
2121
seajs.config({
2222
base: "{{content_url('')}}",
23-
paths: {
24-
'jquery': 'http://static.alipayobjects.com/jquery'
25-
},
2623
alias: {{deps|clean_alias|json_encode}}
2724
});
2825
</script>

0 commit comments

Comments
 (0)