Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// 这个文件用来防止 hexo 5.0.0 使用 "hexo clean" 命令报错。 | ||
// This file is used to prevent hexo 5.0.0 from using "hexo clean" command error. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const fs = require('fs') | ||
|
||
if (fs.existsSync('../hexo/package.json')){ | ||
const version = JSON.parse(fs.readFileSync('../hexo/package.json')).version | ||
if (version.split('.')[0] === '5') { | ||
const oldConfigPath = '../../_config.old.yml' | ||
const configPath = '../../_config.webstack.yml' | ||
if (!fs.existsSync(configPath) && !fs.existsSync(oldConfigPath)) { | ||
fs.writeFileSync(configPath, fs.readFileSync('./_config.yml')) | ||
} | ||
fs.unlinkSync('./_config.yml') | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ a { | |
} | ||
|
||
body { | ||
max-width: 1160px; | ||
max-width: 1100px; | ||
margin: auto !important; | ||
} | ||
|
||
|