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

Ignore categories / tags with zero posts #3624

Merged
merged 1 commit into from Oct 4, 2019

Conversation

@stevenjoezhang
Copy link
Contributor

stevenjoezhang commented Jul 13, 2019

What does it do?

Issue resolved: #3622

Current behaviour

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.

More information:
theme-next/hexo-theme-next#42
theme-next/hexo-theme-next#87

How to test

git clone -b master https://github.com/stevenjoezhang/hexo.git
cd hexo
npm install
npm test

Screenshots

Pull request tasks

  • Add test cases for the changes.
  • Passed the CI test.
@stevenjoezhang stevenjoezhang mentioned this pull request Jul 13, 2019
4 of 15 tasks complete
@coveralls

This comment has been minimized.

Copy link

coveralls commented Jul 13, 2019

Coverage Status

Coverage increased (+0.06%) to 97.309% when pulling b62c13d on stevenjoezhang:master into ffe4eaa on hexojs:master.

lib/hexo/index.js Outdated Show resolved Hide resolved
@stevenjoezhang stevenjoezhang mentioned this pull request Jul 16, 2019
6 of 15 tasks complete
@jiangtj

This comment has been minimized.

@curbengh curbengh added this to the v4.0.0 milestone Sep 23, 2019
@curbengh

This comment has been minimized.

Copy link
Contributor

curbengh commented Sep 24, 2019

I can confirm this fixes the issue. Let's wait for #3728 first to fix failing test.

@curbengh curbengh added this to To do in v4.0.0 Sep 26, 2019
@curbengh

This comment has been minimized.

Copy link
Contributor

curbengh commented Sep 27, 2019

#3728 has been merged. Please rebase.

@stevenjoezhang

This comment has been minimized.

Copy link
Contributor Author

stevenjoezhang commented Sep 27, 2019

Done

v4.0.0 automation moved this from To do to In progress Sep 27, 2019
@SukkaW

This comment has been minimized.

Copy link
Member

SukkaW commented Oct 3, 2019

Is it good to merge then?

@SukkaW SukkaW closed this Oct 3, 2019
v4.0.0 automation moved this from In progress to Done Oct 3, 2019
@SukkaW SukkaW reopened this Oct 3, 2019
v4.0.0 automation moved this from Done to In progress Oct 3, 2019
@SukkaW SukkaW closed this Oct 3, 2019
v4.0.0 automation moved this from In progress to Done Oct 3, 2019
@SukkaW SukkaW reopened this Oct 3, 2019
v4.0.0 automation moved this from Done to In progress Oct 3, 2019
@curbengh

This comment has been minimized.

Copy link
Contributor

curbengh commented Oct 4, 2019

LGTM

@SukkaW SukkaW merged commit 71d10fd into hexojs:master Oct 4, 2019
3 of 4 checks passed
3 of 4 checks passed
codeclimate 2 issues to fix
Details
Travis CI - Pull Request Build Passed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
coverage/coveralls Coverage increased (+0.06%) to 97.309%
Details
v4.0.0 automation moved this from In progress to Done Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
v4.0.0
  
Done
5 participants
You can’t perform that action at this time.