chore(*): update theme and schema version
This commit is contained in:
parent
83043f4c84
commit
924f5c1436
|
@ -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.0,Chrome Android 80.0)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
20
README.md
20
README.md
|
@ -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
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
module.exports = require('./v2_v3');
|
||||
module.exports = require('./v3_v4');
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
|
@ -7,7 +7,7 @@
|
|||
"version": {
|
||||
"type": "string",
|
||||
"description": "Version of the configuration file",
|
||||
"default": "3.0.0"
|
||||
"default": "4.0.0"
|
||||
},
|
||||
"variant": {
|
||||
"type": "string",
|
||||
|
|
|
@ -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 ."
|
||||
|
|
Loading…
Reference in New Issue