Commit 5c68a5d6 authored by JiangTJ's avatar JiangTJ 😋

Rm hexoMetaGeneratorInject

parent 5c6a8376
Pipeline #76470027 failed with stage
in 1 minute and 12 seconds
......@@ -10,6 +10,7 @@ run-test:
- yarn global add hexo-cli --silent
- hexo init test-dir --silent
- cp run-hexo.sh test-dir/
- cp rm-filter.js test-dir/scripts/
- cd test-dir
- git clone https://github.com/jiangtj-lab/hexo-many-posts.git --depth=1 --quiet source/_posts/skk
- yarn install --silent
......
// Fix large blog rendering OOM
const postHtmlFilter = hexo.extend.filter.list()['after_render:html'];
for (let filter of postHtmlFilter) {
if (filter.name === 'hexoMetaGeneratorInject') {
hexo.extend.filter.unregister('after_render:html', filter);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment