2021-02-19 23:33:19 +08:00
|
|
|
/* global hexo */
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
hexo.on('generateBefore', () => {
|
|
|
|
// Merge config.
|
|
|
|
require('./lib/config')(hexo);
|
2024-01-02 20:19:49 +08:00
|
|
|
require('./lib/links')(hexo);
|
2024-01-04 22:50:57 +08:00
|
|
|
require('./lib/authors')(hexo);
|
2021-07-04 20:21:31 +08:00
|
|
|
require('./lib/doc_tree')(hexo);
|
2024-01-14 14:10:36 +08:00
|
|
|
require('./lib/topic_tree')(hexo);
|
2021-03-01 21:06:59 +08:00
|
|
|
require('./lib/utils')(hexo);
|
2024-05-13 09:45:38 +08:00
|
|
|
require('./lib/notebooks')(hexo);
|
2021-02-19 23:33:19 +08:00
|
|
|
});
|
|
|
|
|
2024-01-14 14:10:36 +08:00
|
|
|
hexo.on('generateAfter', () => {
|
|
|
|
require('./lib/merge_posts')(hexo);
|
|
|
|
});
|
|
|
|
|
2021-02-19 23:33:19 +08:00
|
|
|
hexo.on('ready', () => {
|
2022-03-02 15:05:36 +08:00
|
|
|
const { version, homepage, repository } = require('../../package.json');
|
|
|
|
hexo.log.info(`Welcome to Stellar ${version}
|
|
|
|
DOCS ${homepage}
|
|
|
|
REPO ${repository.url}
|
|
|
|
`);
|
2021-02-21 03:13:21 +08:00
|
|
|
});
|