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

Wrong calculation of categories / tags count #3622

Closed
stevenjoezhang opened this issue Jul 13, 2019 · 0 comments · Fixed by #3624
Closed

Wrong calculation of categories / tags count #3622

stevenjoezhang opened this issue Jul 13, 2019 · 0 comments · Fixed by #3624
Labels
enhancement New feature or request

Comments

@stevenjoezhang
Copy link
Member

stevenjoezhang commented Jul 13, 2019

For BUG

See: #1502 #2925

Categories / tags of draft are displayed / counted in non-draft generate.

In hexo-theme-next, we tried to filter out the categories / tags in the draft, but this caused performance issues:
theme-next/hexo-theme-next#42
theme-next/hexo-theme-next#87

Then I found this in tagcloud.js:

// Ignore tags with zero posts
tags = tags.filter(tag => tag.length);

Can this filter be applied to this.site.tags?

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

Successfully merging a pull request may close this issue.

2 participants