From 8e482004702311bb67b20891f8dfc121f88cf782 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Mon, 22 Jan 2024 13:22:40 +0800 Subject: [PATCH] [opt] add version param --- _config.yml | 4 ++-- layout/_partial/head.ejs | 6 +----- layout/_partial/scripts/index.ejs | 6 +----- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/_config.yml b/_config.yml index a8fe792..2a196b5 100755 --- a/_config.yml +++ b/_config.yml @@ -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 ######## diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index 0e50571..9e391d8 100755 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -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') %> - <% } %> + <% if (config.favicon) { %> <%- favicon_tag(config.favicon) %> diff --git a/layout/_partial/scripts/index.ejs b/layout/_partial/scripts/index.ejs index a57f201..58b1246 100644 --- a/layout/_partial/scripts/index.ejs +++ b/layout/_partial/scripts/index.ejs @@ -166,11 +166,7 @@ function custom_inject() { -<% if (theme.stellar.cdn_js) { %> - <%- js({src: theme.stellar.cdn_js, async: true}) %> -<% } else { %> - <%- js({src: '/js/main.js', async: true}) %> -<% } %> + <%- partial('../plugins/comments/script') %>