From 3640946f6086a40457c784e206468ce30154d73d Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Tue, 3 Nov 2020 15:52:55 +0800 Subject: [PATCH] Remove assets settings --- _config.yml | 5 ----- layout/_macro/post.njk | 2 +- layout/_partials/head/head.njk | 2 +- layout/_partials/sidebar/site-overview.njk | 2 +- scripts/helpers/engine.js | 2 +- 5 files changed, 4 insertions(+), 9 deletions(-) diff --git a/_config.yml b/_config.yml index dcf0097..d692d50 100644 --- a/_config.yml +++ b/_config.yml @@ -936,8 +936,3 @@ vendors: # Canvas ribbon canvas_ribbon: - -# Assets -css: css -js: js -images: images diff --git a/layout/_macro/post.njk b/layout/_macro/post.njk index 891be3e..20c9282 100644 --- a/layout/_macro/post.njk +++ b/layout/_macro/post.njk @@ -9,7 +9,7 @@ diff --git a/layout/_partials/head/head.njk b/layout/_partials/head/head.njk index 949a476..1adb5f3 100644 --- a/layout/_partials/head/head.njk +++ b/layout/_partials/head/head.njk @@ -38,7 +38,7 @@ {%- endif %} - + {{ next_font() }} diff --git a/layout/_partials/sidebar/site-overview.njk b/layout/_partials/sidebar/site-overview.njk index 73fa566..5faedd6 100644 --- a/layout/_partials/sidebar/site-overview.njk +++ b/layout/_partials/sidebar/site-overview.njk @@ -89,7 +89,7 @@ {%- if theme.creative_commons.license and theme.creative_commons.sidebar %}
- {%- set ccImage = 'Creative Commons' %} + {%- set ccImage = 'Creative Commons' %} {{ next_url(ccURL, ccImage, {class: 'cc-opacity'}) }}
{%- endif %} diff --git a/scripts/helpers/engine.js b/scripts/helpers/engine.js index 2492719..e20afdc 100644 --- a/scripts/helpers/engine.js +++ b/scripts/helpers/engine.js @@ -19,7 +19,7 @@ hexo.extend.helper.register('next_js', function(file, pjax = false) { const { next_version } = this; const { internal } = this.theme.vendors; const links = { - local : this.url_for(`${this.theme.js}/${file}`), + local : this.url_for(`js/${file}`), jsdelivr: `//cdn.jsdelivr.net/npm/hexo-theme-next@${next_version}/source/js/${file}`, unpkg : `//unpkg.com/hexo-theme-next@${next_version}/source/js/${file}`, cdnjs : `//cdnjs.cloudflare.com/ajax/libs/hexo-theme-next/${next_version}/${file}`