index.js 331 B

1234567891011121314
  1. /* global hexo */
  2. 'use strict';
  3. const assign = require('object-assign');
  4. hexo.config.auto_dir_categorize = assign({
  5. enable: true,
  6. force: false
  7. }, hexo.config.auto_dir_categorize);
  8. const post_processor = require('./lib/processor_post')(hexo);
  9. hexo.extend.processor.register(post_processor.pattern, post_processor.process);