refactor: rename images folder
|
@ -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> |
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
};
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 431 B After Width: | Height: | Size: 431 B |
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 747 B After Width: | Height: | Size: 747 B |