Skip to content

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

Merged
yoshinorin merged 1 commit intov7.0.0from
post-link
Jun 2, 2023
Merged

feat(tags/post_link): use slug when title is empty#5220
yoshinorin merged 1 commit intov7.0.0from
post-link

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