File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212
1313``` shell
1414git 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
2326or
2427
2528``` shell
26- cnpm install hexo-theme-webstack -S
29+ cnpm install hexo-theme-webstack --save
2730```
2831
2932## Configuration
Original file line number Diff line number Diff line change 1010
1111``` shell
1212git 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
2124or
2225
2326``` shell
24- cnpm install hexo-theme-webstack -S
27+ cnpm install hexo-theme-webstack --save
2528```
2629
2730## 配置
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ const fs = require('fs')
22
33if ( 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 ) ) {
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments