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

Permalink update problem. #4493

Closed
5 tasks done
tyadan opened this issue Aug 24, 2020 · 1 comment
Closed
5 tasks done

Permalink update problem. #4493

tyadan opened this issue Aug 24, 2020 · 1 comment
Labels
question Needs help in usage

Comments

@tyadan
Copy link

tyadan commented Aug 24, 2020

#4162 Check List

Please check followings before submitting a new issue.

Expected behavior

Using Hexo version 5.1.1, the permalink seems have some problems.

In my post front-matter, I have defined every post with permalink, for example:

categories: ***
permalink: zfs-zil-l2arc
date: 2019-01-08 09:30:00

After build my site, it seems some of the permalink ends with "/", some didn't.

Because I'm using valine to do the discuss and count thins, it uses the permalink to id every post, in Hexo 4.* ,every permalink ends whith "/" , in Hexo 5.* , some of them didn't cause valine can't id the post correctly.

It seems in post_permalink.js 5.* has changed the postPermalinkFilter caused this problem.

@SukkaW SukkaW added the question Needs help in usage label Aug 24, 2020
@SukkaW
Copy link
Member

SukkaW commented Aug 24, 2020

After build my site, it seems some of the permalink ends with "/", some didn't.

Are both ends with / & not ends with / accessible?

And would you mind providing the structure of your source/_posts and public directories?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Needs help in usage
Projects
None yet
Development

No branches or pull requests

3 participants