Skip to content

Commit e8f3d15

Browse files
committed
更新说明文档;修复已知bug(#33)
1 parent a7020e7 commit e8f3d15

5 files changed

Lines changed: 14 additions & 8 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,21 @@
1212

1313
```shell
1414
git clone https://github.com/HCLonely/hexo-theme-webstack themes/webstack
15+
16+
# Install dependencies
17+
npm install hexo-renderer-pug pug --save
1518
```
1619

1720
### hexo >= 5.0
1821

1922
```shell
20-
npm install hexo-theme-webstack -S
23+
npm install hexo-theme-webstack --save
2124
```
2225

2326
or
2427

2528
```shell
26-
cnpm install hexo-theme-webstack -S
29+
cnpm install hexo-theme-webstack --save
2730
```
2831

2932
## Configuration

README_CN.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,21 @@
1010

1111
```shell
1212
git clone https://github.com/HCLonely/hexo-theme-webstack themes/webstack
13+
14+
# 安装依赖
15+
npm install hexo-renderer-pug pug --save
1316
```
1417

1518
### hexo >= 5.0
1619

1720
```shell
18-
npm install hexo-theme-webstack -S
21+
npm install hexo-theme-webstack --save
1922
```
2023

2124
or
2225

2326
```shell
24-
cnpm install hexo-theme-webstack -S
27+
cnpm install hexo-theme-webstack --save
2528
```
2629

2730
## 配置

layout/common/header.pug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
header.logo-env
44
.logo
55
a(href=url_for('/index.html')).logo-expanded
6-
img(src=url_for(setting.logo.expanded), width='100%', alt='')
6+
img(src=url_for(setting.logo?.expanded), width='100%', alt='')
77
a(href=url_for('/index.html')).logo-collapsed
8-
img(src=url_for(setting.logo.collapsed), width='40', alt='')
8+
img(src=url_for(setting.logo?.collapsed), width='40', alt='')
99
.mobile-menu-toggle.visible-xs
1010
a(href='#', data-toggle='user-info-menu')
1111
i.linecons-cog

move_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const fs = require('fs')
22

33
if (fs.existsSync('../hexo/package.json')){
44
const version = JSON.parse(fs.readFileSync('../hexo/package.json')).version
5-
if (version.split('.')[0].includes('5')) {
5+
if (parseInt(version.split('.')[0] || '7', 10) >= 5) {
66
const oldConfigPath = '../../source/_data/webstack.yml'
77
const configPath = '../../_config.webstack.yml'
88
if (!fs.existsSync(configPath) && !fs.existsSync(oldConfigPath)) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hexo-theme-webstack",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"description": "A hexo theme based on webstack.",
55
"keywords": [
66
"hexo",

0 commit comments

Comments
 (0)