first commit

This commit is contained in:
Jerry
2019-06-04 22:37:36 +08:00
Unverified
commit 1357f218e5
102 changed files with 7015 additions and 0 deletions

12
scripts/replace-config.js Normal file
View File

@@ -0,0 +1,12 @@
/**
* Note: configs in _data/melody.yml will replace configs in hexo.theme.config.
*/
hexo.on('generateBefore', function () {
const rootConfig = hexo.config
if (hexo.locals.get) {
const data = hexo.locals.get('data')
data && data.melody && (hexo.theme.config = data.melody)
}
hexo.theme.config.rootConfig = rootConfig
})