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

feat(tags/post_link): use slug when title is empty #5220

Merged
merged 1 commit into from
Jun 2, 2023
Merged

Conversation

stevenjoezhang
Copy link
Member

What does it do?

When using post_link to link a post without a title, the content of the generated link is empty.

Screenshots

Pull request tasks

  • Add test cases for the changes.
  • Passed the CI test.

@github-actions
Copy link

How to test

git clone -b post-link https://github.com/hexojs/hexo.git
cd hexo
npm install
npm test

Copy link
Member

@renbaoshuo renbaoshuo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@yoshinorin yoshinorin added this to the 7.0.0 milestone Jun 2, 2023
@yoshinorin yoshinorin merged commit 5837bb8 into v7.0.0 Jun 2, 2023
@yoshinorin yoshinorin deleted the post-link branch June 2, 2023 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants