-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Labels
Description
Check List
Please check followings before submitting a new issue.
- I have already read Docs page & Troubleshooting page
- I have already searched existing issues and they are not help to me
- I examined error or warning messages and it's difficult to solve
- Using the latest version of Hexo (run
hexo versionto check) - Node.js is higher than minimum required version
Expected behavior
before_post_render and after_post_render should only executed on posts and pages.
Actual behavior
Non-article files (like css) being processed by before_post_render & after_post_render well.
Is the problem still there under "Safe mode"?
Yes.
Other Information
Add following content to scripts/test.js:
hexo.on('generateBefore', () => {
hexo.model('Page').toArray().forEach(i => console.log(i.path));
})And non-article paths will show up.
cc @curbengh
Reactions are currently unavailable