Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data_list is not iterable问题 #9

Open
tangwan16 opened this issue Mar 24, 2024 · 1 comment
Open

data_list is not iterable问题 #9

tangwan16 opened this issue Mar 24, 2024 · 1 comment

Comments

@tangwan16
Copy link

实际应用中碰到了data_list is not iterable问题,打印hexo.locals.get("categories").data,发现是key:value的形式,不是对象数组,进行修改,同时对于item.length,item.path属性缺失问题,通过hexo.locals.get("post").新构建了categories的这个分类:文章数数组.
解决我在应用分类磁铁问题,附件是修改后的index.js,替换hexo-magnet中index.js即可,如果遇到我这个问题,可以尝试一下[Uploading
index - 副本.txt

@RayTech3433
Copy link

亲测可用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants