Remove assets settings

This commit is contained in:
Mimi 2020-11-03 15:52:55 +08:00
parent 4feb12d49b
commit 3640946f60
5 changed files with 4 additions and 9 deletions

View File

@ -936,8 +936,3 @@ vendors:
# Canvas ribbon # Canvas ribbon
canvas_ribbon: canvas_ribbon:
# Assets
css: css
js: js
images: images

View File

@ -9,7 +9,7 @@
<link itemprop="mainEntityOfPage" href="{{ post.permalink }}"> <link itemprop="mainEntityOfPage" href="{{ post.permalink }}">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person"> <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="image" content="{{ url_for(theme.avatar.url or theme.images + '/avatar.gif') }}"> <meta itemprop="image" content="{{ url_for(theme.avatar.url or 'images/avatar.gif') }}">
<meta itemprop="name" content="{{ author }}"> <meta itemprop="name" content="{{ author }}">
<meta itemprop="description" content="{{ description }}"> <meta itemprop="description" content="{{ description }}">
</span> </span>

View File

@ -38,7 +38,7 @@
<meta name="baidu-site-verification" content="{{ theme.baidu_site_verification }}"> <meta name="baidu-site-verification" content="{{ theme.baidu_site_verification }}">
{%- endif %} {%- endif %}
<link rel="stylesheet" href="{{ url_for(theme.css) }}/main.css"> <link rel="stylesheet" href="{{ url_for('css/main.css') }}">
{{ next_font() }} {{ next_font() }}

View File

@ -89,7 +89,7 @@
{%- if theme.creative_commons.license and theme.creative_commons.sidebar %} {%- if theme.creative_commons.license and theme.creative_commons.sidebar %}
<div class="cc-license site-overview-item animated" itemprop="license"> <div class="cc-license site-overview-item animated" itemprop="license">
{%- set ccImage = '<img src="' + url_for(theme.images + '/cc-' + theme.creative_commons.license + '.svg') + '" alt="Creative Commons">' %} {%- set ccImage = '<img src="' + url_for('images/cc-' + theme.creative_commons.license + '.svg') + '" alt="Creative Commons">' %}
{{ next_url(ccURL, ccImage, {class: 'cc-opacity'}) }} {{ next_url(ccURL, ccImage, {class: 'cc-opacity'}) }}
</div> </div>
{%- endif %} {%- endif %}

View File

@ -19,7 +19,7 @@ hexo.extend.helper.register('next_js', function(file, pjax = false) {
const { next_version } = this; const { next_version } = this;
const { internal } = this.theme.vendors; const { internal } = this.theme.vendors;
const links = { 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}`, jsdelivr: `//cdn.jsdelivr.net/npm/hexo-theme-next@${next_version}/source/js/${file}`,
unpkg : `//unpkg.com/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}` cdnjs : `//cdnjs.cloudflare.com/ajax/libs/hexo-theme-next/${next_version}/${file}`