-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add Color class from tagcloud hexo helper #58
Conversation
That looks interesting, @segayuu! Is it possible you can add more information? Maybe also provide the code to clone & test? |
Btw, reported an issue about |
Thank @yoshinorin !
I did not know the issue, thank you! |
OK. Understood 😃 IMHO we might as well include this PR to hexo v4. How do you think? |
@yoshinorin I agree with your opinion! 😆 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@hexojs/core anyone wants to add something or we can merge? |
I suggest to rebase to include test in node 8-12. |
@curbengh Since rebase was done and a new error was corrected, there was no problem with merge. |
Agenda
tagcloud
helper depends on theColor
inner class. This class is reusable but is not currently tested alone.Therefore, after porting to
hexo-util
, we separate tagcloud-dependent code from the original test. This improves the maintainability.Clone
Test
Related
https://github.com/hexojs/hexo/blob/3.8.0/lib/plugins/helper/tagcloud.js
https://github.com/hexojs/hexo/blob/3.8.0/test/scripts/helpers/tagcloud.js