-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Usage of back2top
button
#657
Conversation
@@ -5,7 +5,7 @@ | |||
@import "pagination"; | |||
@import "comments"; | |||
@import "tag-cloud"; | |||
@import hexo-config('sidebar.b2t') ? "back-to-top-sidebar" : "back-to-top"; | |||
@import hexo-config('back2top.sidebar') ? "back-to-top-sidebar" : "back-to-top"; |
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.
Add if hexo-config('back2top.enable')
?
@import hexo-config('back2top.sidebar') ? "back-to-top-sidebar" : "back-to-top" if hexo-config('back2top.enable');
Should work fine now.. |
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.
Ahh... I forgot something ... Updated again |
@stevenjoezhang see how to add readme when breaking changes exists. |
@ivan-nginx I know, docs have already been added |
@stevenjoezhang I mean – don't forget to set checkbox if docs already added. |
Sorry, I'll check again |
@@ -107,6 +107,8 @@ | |||
scheme: '{{ theme.scheme }}', | |||
version: '{{ version }}', | |||
sidebar: {{ theme.sidebar | json_encode }}, | |||
back2top: {{ theme.back2top.enable }}, |
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.
Need to refactor this under json, no need both back2top
and back2top_sidebar
parameters.
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.
Yes, it's a good idea. You can do it.
Breaking Change
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue resolved: N/A
What is the new behavior?
How to use?
In NexT
_config.yml
:Does this PR introduce a breaking change?