chore(*): update theme and schema version

This commit is contained in:
ppoffice 2020-08-14 17:48:43 -04:00
parent 83043f4c84
commit 924f5c1436
No known key found for this signature in database
GPG Key ID: B33335481CC0D498
8 changed files with 34 additions and 16 deletions

View File

@ -17,7 +17,7 @@ assignees: ''
- Hexo操作系统和Node.js的版本使用`hexo version`命令来查看)
- 站点配置文件`_config.yml`
- 主题配置文件`themes/icarus/_config.yml`
- 主题配置文件`_config.icarus.yml`或`themes/icarus/_config.yml`
- 其他额外的配置文件文章front-matter`_config.post.yml`,或`_config.page.yml`
- 浏览器版本如Firefox 70.0Chrome Android 80.0

View File

@ -17,7 +17,7 @@ The version and configuration of Hexo and Icarus.
- Hexo, OS, and node version (use `hexo version` command to view these information)
- Site configuration file `_config.yml`
- Theme configuration file `themes/icarus/_config.yml`
- Theme configuration file `_config.icarus.yml` or `themes/icarus/_config.yml`
- Any additional theme configuration files (post front-matter, `_config.post.yml`, or `_config.page.yml`)
- Browser and version (e.g., Firefox 70.0, Chrome Android 80.0)

View File

@ -5,7 +5,8 @@ os: linux
cache: false
node_js:
- "8"
- "10"
- "12"
- "node"
script:
@ -30,9 +31,6 @@ jobs:
- npm install -g hexo-cli
- npm install
- npm install $DEPS
- cp _config.theme.yml themes/icarus/_config.yml
- ([[ -e _config.page.yml ]] && cp _config.page.yml themes/icarus/) || true
- ([[ -e _config.post.yml ]] && cp _config.post.yml themes/icarus/) || true
- hexo g
deploy:
provider: pages

View File

@ -12,15 +12,25 @@
### :cd: Installation
Download & extract or `git clone` Icarus from GitHub to your blog's theme folder, and that's it!
**Method 1: Direct download**
Download & extract or `git clone` Icarus from GitHub to your blog's theme folder:
```shell
$ git clone https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus
$ hexo s // start a live server
$ git clone https://github.com/ppoffice/hexo-theme-icarus.git -b <version> themes/icarus
```
Once started, Icarus will remind you of any missing dependencies to install.
And it will create a theme configuration file (`_config.yml`) if it is not there.
**Method 2: Install via NPM (new in Hexo 5.0 and Icarus 4.0)**
```shell
$ npm install hexo-theme-icarus
```
Then, activate Icarus in Hexo's configuration file:
```shell
$ hexo config theme icarus
```
### :gift: Features

View File

@ -1 +1 @@
module.exports = require('./v2_v3');
module.exports = require('./v3_v4');

View File

@ -0,0 +1,11 @@
const Migration = require('hexo-component-inferno/lib/core/migrate').Migration;
module.exports = class extends Migration {
constructor() {
super('4.0.0', null);
}
upgrade(config) {
return config;
}
};

View File

@ -7,7 +7,7 @@
"version": {
"type": "string",
"description": "Version of the configuration file",
"default": "3.0.0"
"default": "4.0.0"
},
"variant": {
"type": "string",

View File

@ -1,13 +1,12 @@
{
"name": "hexo-theme-icarus",
"version": "3.1.1",
"private": true,
"version": "4.0.0-rc1",
"engines": {
"node": ">=10.13.0"
},
"description": "A simple, delicate, and modern theme for Hexo",
"repository": "https://github.com/ppoffice/hexo-theme-icarus.git",
"author": "ppoffice <zrp1994@gmail.com>",
"author": "ppoffice <ppoffice@users.noreply.github.com>",
"license": "MIT",
"scripts": {
"lint": "eslint --ext .js --ext .jsx --ext .json ."