You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing a hexo filter plugin, which need to iterate over the front-matter of all Posts in the post_permalink stage, thus to count for a particular data.
However, calling hexo.locals.get('posts').toArray() directly in the post_permalink callback will return an empty list. Is there any alternative solution to traversing Posts in the post_permalink stage?
Others
No response
The text was updated successfully, but these errors were encountered:
yqs112358
changed the title
如何在post_permalink阶段遍历所有Posts
How to iterate over all Posts in the post_permalink stage
Dec 9, 2024
Check List
Feature Request
I'm writing a hexo filter plugin, which need to iterate over the front-matter of all Posts in the
post_permalink
stage, thus to count for a particular data.However, calling
hexo.locals.get('posts').toArray()
directly in thepost_permalink
callback will return an empty list. Is there any alternative solution to traversing Posts in thepost_permalink
stage?Others
No response
The text was updated successfully, but these errors were encountered: