diff --git a/README.md b/README.md index de80875..7ab1526 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- +
A simple, delicate, and modern theme for the static site generator Hexo.
Preview | diff --git a/include/helper/page.js b/include/helper/page.js index b64dc95..2e117ef 100644 --- a/include/helper/page.js +++ b/include/helper/page.js @@ -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'); }); }; diff --git a/include/schema/common/head.json b/include/schema/common/head.json index 8bbebce..3f6d9e6 100644 --- a/include/schema/common/head.json +++ b/include/schema/common/head.json @@ -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", diff --git a/include/schema/config.json b/include/schema/config.json index 1f79861..625c095 100644 --- a/include/schema/config.json +++ b/include/schema/config.json @@ -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", diff --git a/layout/common/head.jsx b/layout/common/head.jsx index 0693347..0592f7e 100644 --- a/layout/common/head.jsx +++ b/layout/common/head.jsx @@ -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 diff --git a/layout/widget/profile.jsx b/layout/widget/profile.jsx index 0f6f8e4..699f560 100644 --- a/layout/widget/profile.jsx +++ b/layout/widget/profile.jsx @@ -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; diff --git a/package.json b/package.json index 1219ccb..9d85541 100644 --- a/package.json +++ b/package.json @@ -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" } -} +} \ No newline at end of file diff --git a/source/images/avatar.png b/source/img/avatar.png similarity index 100% rename from source/images/avatar.png rename to source/img/avatar.png diff --git a/source/images/favicon.svg b/source/img/favicon.svg similarity index 100% rename from source/images/favicon.svg rename to source/img/favicon.svg diff --git a/source/images/logo.svg b/source/img/logo.svg similarity index 100% rename from source/images/logo.svg rename to source/img/logo.svg diff --git a/source/images/og_image.png b/source/img/og_image.png similarity index 100% rename from source/images/og_image.png rename to source/img/og_image.png diff --git a/source/images/thumbnail.svg b/source/img/thumbnail.svg similarity index 100% rename from source/images/thumbnail.svg rename to source/img/thumbnail.svg