UNPKG

hexo-plugin-aurora

Version:

A plugin for Hexo Aurora theme

20 lines (18 loc) 397 B
const algoliaCommand = require('./algolia'); module.exports = function (hexo) { hexo.extend.console.register( 'algolia', 'Index your posts on Algolia', { options: [ { name: '-n, --no-clear', desc: 'Does not clear the existing index' } ] }, (options, callback) => { algoliaCommand(hexo, options, callback); } ); };