diff --git a/lib/plugins/filter/after_post_render/index.js b/lib/plugins/filter/after_post_render/index.js index fbc7a7822c..60b03f8118 100644 --- a/lib/plugins/filter/after_post_render/index.js +++ b/lib/plugins/filter/after_post_render/index.js @@ -5,4 +5,5 @@ module.exports = ctx => { filter.register('after_post_render', require('./external_link')); filter.register('after_post_render', require('./excerpt')); + filter.register('after_post_render', require('./meta_generator')); }; diff --git a/lib/plugins/filter/meta_generator.js b/lib/plugins/filter/after_post_render/meta_generator.js similarity index 100% rename from lib/plugins/filter/meta_generator.js rename to lib/plugins/filter/after_post_render/meta_generator.js diff --git a/lib/plugins/filter/index.js b/lib/plugins/filter/index.js index 4b3d47575b..b5a30174df 100644 --- a/lib/plugins/filter/index.js +++ b/lib/plugins/filter/index.js @@ -11,5 +11,4 @@ module.exports = ctx => { filter.register('new_post_path', require('./new_post_path')); filter.register('post_permalink', require('./post_permalink')); - filter.register('after_render:html', require('./meta_generator')); }; diff --git a/test/scripts/filters/meta_generator.js b/test/scripts/filters/meta_generator.js index ef182edb7d..a7d7f41f74 100644 --- a/test/scripts/filters/meta_generator.js +++ b/test/scripts/filters/meta_generator.js @@ -3,7 +3,7 @@ describe('Meta Generator', () => { const Hexo = require('../../../lib/hexo'); const hexo = new Hexo(); - const metaGenerator = require('../../../lib/plugins/filter/meta_generator').bind(hexo); + const metaGenerator = require('../../../lib/plugins/filter/after_post_render/meta_generator').bind(hexo); const cheerio = require('cheerio'); it('default', () => {