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