[opt] add version param
This commit is contained in:
parent
3cbd86cb57
commit
8e48200470
|
@ -3,8 +3,8 @@ stellar:
|
|||
version: '1.26.2'
|
||||
homepage: 'https://xaoxuu.com/wiki/stellar/'
|
||||
repo: 'https://github.com/xaoxuu/hexo-theme-stellar'
|
||||
cdn_css: # Use cdn links instead of /css/main.css
|
||||
cdn_js: # Use cdn links instead of /js/main.js
|
||||
main_css: /css/main.css
|
||||
main_js: /js/main.js
|
||||
|
||||
|
||||
######## head tags ########
|
||||
|
|
|
@ -118,11 +118,7 @@ function custom_inject() {
|
|||
<%- feed_tag(config.feed.path, {title: config.title}) %>
|
||||
<% } %>
|
||||
|
||||
<% if (theme.stellar.cdn_css) { %>
|
||||
<%- css(theme.stellar.cdn_css) %>
|
||||
<% } else { %>
|
||||
<%- css('/css/main.css') %>
|
||||
<% } %>
|
||||
<link rel="stylesheet" href="<%- `${theme.stellar.main_css}?v=${stellar_info('version')}` %>">
|
||||
|
||||
<% if (config.favicon) { %>
|
||||
<%- favicon_tag(config.favicon) %>
|
||||
|
|
|
@ -166,11 +166,7 @@ function custom_inject() {
|
|||
</script>
|
||||
|
||||
<!-- required -->
|
||||
<% if (theme.stellar.cdn_js) { %>
|
||||
<%- js({src: theme.stellar.cdn_js, async: true}) %>
|
||||
<% } else { %>
|
||||
<%- js({src: '/js/main.js', async: true}) %>
|
||||
<% } %>
|
||||
<script src="<%- `${theme.stellar.main_js}?v=${stellar_info('version')}` %>" async></script>
|
||||
|
||||
<!-- optional -->
|
||||
<%- partial('../plugins/comments/script') %>
|
||||
|
|
Loading…
Reference in New Issue