Skip to content

Commit 0759680

Browse files
committed
url_for
1 parent 823e970 commit 0759680

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

layout/_partial/head.ejs

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@
114114
<link rel="stylesheet" href="<%- theme.info.cdn.css %>" media="print" onload="this.media='all';this.onload=null">
115115
<noscript><link rel="stylesheet" href="<%- theme.info.cdn.css.style %>"></noscript>
116116
<% } else { %>
117-
<link rel="stylesheet" href="/css/style.css" media="print" onload="this.media='all';this.onload=null">
118-
<noscript><link rel="stylesheet" href="/css/style.css"></noscript>
117+
<link rel="stylesheet" href="<%- url_for("/css/style.css") %>" media="print" onload="this.media='all';this.onload=null">
118+
<noscript><link rel="stylesheet" href="<%- url_for("/css/style.css") %>"></noscript>
119119
<% } %>
120120

121121
<script id="loadcss"></script>

layout/_partial/scripts/search.ejs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $('.input.u-search-input').one('focus',function(){
88
<% } else if(theme.use_cdn) { %>
99
loadScript('<%- 'https://cdn.jsdelivr.net/npm/hexo-theme-volantis@'+theme.info.theme_version+'/source/js/search/'+theme.search.service+'.min.js' %>',setSearchService);
1010
<% } else { %>
11-
loadScript('<%- '/js/search/'+theme.search.service+'.js' %>',setSearchService);
11+
loadScript('<%- url_for('/js/search/'+theme.search.service+'.js') %>',setSearchService);
1212
<% } %>
1313
})
1414

0 commit comments

Comments
 (0)