refactor: rename images folder

This commit is contained in:
ppoffice 2019-12-24 20:34:27 -05:00
parent cbb5bcb992
commit 9e08b5c4fe
12 changed files with 11 additions and 8 deletions

View File

@ -1,5 +1,5 @@
<p align="center" class="has-mb-6">
<img class="not-gallery-item" height="48" src="https://ppoffice.github.io/hexo-theme-icarus/images/logo.svg">
<img class="not-gallery-item" height="48" src="https://ppoffice.github.io/hexo-theme-icarus/img/logo.svg">
<br> A simple, delicate, and modern theme for the static site generator Hexo.
<br>
<a href="https://ppoffice.github.io/hexo-theme-icarus/">Preview</a> |

View File

@ -26,6 +26,6 @@ module.exports = function(hexo) {
hexo.extend.helper.register('get_thumbnail', function(post) {
const { url_for, has_thumbnail } = this.helper;
return url_for(has_thumbnail.call(this, post) ? post.thumbnail : 'images/thumbnail.svg');
return url_for(has_thumbnail.call(this, post) ? post.thumbnail : '/img/thumbnail.svg');
});
};

View File

@ -7,7 +7,7 @@
"favicon": {
"type": "string",
"description": "URL or path to the website's icon",
"default": "/images/favicon.svg"
"default": "/img/favicon.svg"
},
"canonical_url": {
"type": "string",

View File

@ -14,7 +14,7 @@
"object"
],
"description": "Path or URL to the website's logo",
"default": "/images/logo.svg",
"default": "/img/logo.svg",
"properties": {
"text": {
"type": "string",

View File

@ -70,7 +70,7 @@ module.exports = class extends Component {
images.push(img[1]);
}
} else {
images = [url_for('/images/og_image.png')];
images = [url_for('/img/og_image.png')];
}
return <head>

View File

@ -102,7 +102,7 @@ module.exports = cacheComponent(Profile, 'widget.profile', props => {
if (avatar) {
return url_for(avatar);
}
return url_for('/images/avatar.png');
return url_for('/img/avatar.png');
}
const postCount = site.posts.length;

View File

@ -30,6 +30,9 @@
"hexo-util": "^1.8.0",
"inferno": "^7.3.3",
"inferno-create-element": "^7.3.3",
"moment": "^2.22.2"
"moment": "^2.22.2",
"ajv": "^6.10.2",
"glob": "^7.1.4",
"js-yaml": "^3.13.1"
}
}
}

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 431 B

After

Width:  |  Height:  |  Size: 431 B

View File

Before

Width:  |  Height:  |  Size: 9.3 KiB

After

Width:  |  Height:  |  Size: 9.3 KiB

View File

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

View File

Before

Width:  |  Height:  |  Size: 747 B

After

Width:  |  Height:  |  Size: 747 B