-
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
Fix issues caused by PJAX #1057
Conversation
Good job! |
|
||
hexo.extend.helper.register('gitalk_md5', function(path) { | ||
var str = this.url_for(path); | ||
str = encodeURI(str); |
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.
This line should be removed due to hexojs/hexo#3708
post.path
is encoded twice after Hexo 4.0.0
hexo.extend.helper.register('gitalk_md5', function(path) { | ||
var str = this.url_for(path); | ||
str = encodeURI(str); | ||
str.replace('index.html', ''); |
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.
This line should be str = str.replace('index.html', '');
hexo.extend.helper.register('gitalk_md5', function(path) { | ||
var str = this.url_for(path); | ||
str = encodeURI(str); | ||
str.replace('index.html', ''); |
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.
This line should be str = str.replace('index.html', '');
vendors: - md5:
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?