diff --git a/_config.yml b/_config.yml index c09f2ac..4d533f4 100755 --- a/_config.yml +++ b/_config.yml @@ -153,3 +153,5 @@ search: # Less less: compress: true + +themecdn: //cdn.jsdelivr.net/gh/xaoxuu/cdn@18.12.23.2/ diff --git a/layout/_partial/comments.ejs b/layout/_partial/comments.ejs index 4873c7c..aa6f21e 100644 --- a/layout/_partial/comments.ejs +++ b/layout/_partial/comments.ejs @@ -37,7 +37,7 @@ - + <% } %> <% } %> <% } %> diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs index 64852d2..82d94fd 100755 --- a/layout/_partial/head.ejs +++ b/layout/_partial/head.ejs @@ -37,7 +37,7 @@ <% if (config.import && config.import.style == true) { %> - <%- css('//cdn.jsdelivr.net/gh/xaoxuu/blog@gh-pages/style.css') %> + <%- css(theme.themecdn + 'css/hexo-theme-material-x/style.min.css') %> <% } else if (config.import && config.import.style && config.import.style.length > 0){ %> <%- css(config.import.style) %> <% } else { %> @@ -46,7 +46,7 @@ <% if (config.import && config.import.fontawesome == true) { %> - <%- css('//cdn.jsdelivr.net/gh/xaoxuu/cdn@master/fontawesome/5.6.3/css/all.min.css') %> + <%- css(theme.themecdn + 'fontawesome/5.6.3/css/all.min.css') %> <% } else if (config.import && config.import.fontawesome && config.import.fontawesome.length > 0){ %> <%- css(config.import.fontawesome) %> <% } else { %> diff --git a/layout/_partial/scripts.ejs b/layout/_partial/scripts.ejs index f68c6ea..1211e31 100755 --- a/layout/_partial/scripts.ejs +++ b/layout/_partial/scripts.ejs @@ -2,7 +2,7 @@ - + +