hexo-theme-ayer
Advanced tools
Comparing version 1.8.2 to 1.8.3
@@ -6,5 +6,4 @@ const fs = require('fs') | ||
if (version.split('.')[0] === '5') { | ||
const oldConfigPath = '../../source/_data/ayer.yml' | ||
const configPath = '../../_config.ayer.yml' | ||
if (!fs.existsSync(configPath) && !fs.existsSync(oldConfigPath)) { | ||
if (!fs.existsSync(configPath)) { | ||
fs.writeFileSync(configPath, fs.readFileSync('./_config.yml')) | ||
@@ -11,0 +10,0 @@ } |
{ | ||
"name": "hexo-theme-ayer", | ||
"version": "1.8.2", | ||
"version": "1.8.3", | ||
"description": "a clean and elegant theme for hexo.", | ||
"scripts": { | ||
"dev": "parcel serve source-src/main.js -d source/dist", | ||
"build": "rimraf source/dist && parcel build source-src/main.js -d source/dist --no-source-maps" | ||
"build": "rimraf source/dist && parcel build source-src/main.js -d source/dist --no-source-maps", | ||
"postinstall": "node ./move_config.js" | ||
}, | ||
@@ -20,6 +21,7 @@ "source": "source-src/main.js", | ||
], | ||
"author": "Shen-Yu", | ||
"author": "Shen-Yu <shenyu@hotmail.com>", | ||
"license": "SATA", | ||
"bugs": { | ||
"url": "https://github.com/Shen-Yu/hexo-theme-ayer/issues" | ||
"url": "https://github.com/Shen-Yu/hexo-theme-ayer/issues", | ||
"email": "shenyu@hotmail.com" | ||
}, | ||
@@ -34,2 +36,2 @@ "homepage": ".", | ||
"dependencies": {} | ||
} | ||
} |
@@ -45,10 +45,21 @@ <p align="center"><a href="https://shen-yu.gitee.io" target="_blank" rel="noopener noreferrer"><img width="100" src="logo.png" alt="ayer logo"></a></p> | ||
### Install | ||
## Install | ||
``` bash | ||
$ git clone https://github.com/Shen-Yu/hexo-theme-ayer.git themes/ayer | ||
### For hexo < 5.0 | ||
``` shell | ||
git clone https://github.com/Shen-Yu/hexo-theme-ayer.git themes/ayer | ||
``` | ||
### Enable | ||
### For hexo >= 5.0 | ||
``` shell | ||
npm i hexo-theme-ayer -S | ||
``` | ||
- If this theme is newly installed, a `_config.ayer.yml` file will be generated in the root directory after the installation is complete, and you can directly edit the `_config.ayer.yml` file for configuration. | ||
- If it is a theme upgrade, you can use the configuration method of hexo < 5.0, or you can move the original configuration file to the root directory and rename it to `_config.ayer.yml`. | ||
## Enable | ||
Modify `theme` setting in `_config.yml` to `ayer` | ||
@@ -60,3 +71,3 @@ | ||
### Update | ||
## Update | ||
@@ -68,3 +79,3 @@ ``` bash | ||
### Multi Language Support | ||
## Multi Language Support | ||
zh-CN(中文简体) en(English) zh-TW(中文繁体) ja(Japanese) es(Spanish) de(German) fr(French) ru(Russian) ko(Korean) vi(Vietnamese) nl(Dutch) no(Norwegian) pt(Portuguese) | ||
@@ -74,3 +85,3 @@ | ||
### Configuration | ||
## Configuration | ||
@@ -252,3 +263,3 @@ let me know if you have any questions. | ||
### Plugins | ||
## Plugins | ||
@@ -296,3 +307,3 @@ + [hexo-generator-search](https://github.com/wzpan/hexo-generator-search) (for Local Search) | ||
``` | ||
### Categories | ||
## Categories | ||
``` bash | ||
@@ -310,6 +321,6 @@ hexo new page categories | ||
### Tags | ||
## Tags | ||
Same as categories. | ||
### Gallery | ||
## Gallery | ||
Need to write in the head of the markdown, this is not a good way to write, I hope to get a better way to write on github. | ||
@@ -328,3 +339,3 @@ | ||
### Toc | ||
## Toc | ||
@@ -331,0 +342,0 @@ Use Tocbot to parse the title tags (h1~h6) in the content and insert the directory. |
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
2933855
356
977
1