hexo-theme-stellar/scripts/events/index.js

19 lines
391 B
JavaScript
Raw Normal View History

2021-02-19 23:33:19 +08:00
/* global hexo */
'use strict';
hexo.on('generateBefore', () => {
// Merge config.
require('./lib/config')(hexo);
2021-07-04 20:21:31 +08:00
require('./lib/doc_tree')(hexo);
2021-03-01 21:06:59 +08:00
require('./lib/utils')(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
});