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

bugfix:修复编辑时 series 标签内文章重复的问题 #1505

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

LittleNyima
Copy link
Contributor

使用 hexo s 在编辑时预览文章,如果文章中存在 series 标签,则每次保存时标签内的文章都会多重复一次,如图所示:

bug

这是因为每次重新渲染时,所有的文章都会被重新添加到 series.js 维护的 groups 对象中,因此在每次渲染前清空这一对象即可解决问题

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

Successfully merging this pull request may close these issues.

None yet

1 participant