feat(tags/post_link): search for both slug and title#5114
feat(tags/post_link): search for both slug and title#5114stevenjoezhang merged 1 commit intomasterfrom
Conversation
|
Publish flamegraph to https://27506383a5dc60f4b2b0b53ec59223943c786ac9-14-hexo.surge.sh/flamegraph.html |
yoshinorin
left a comment
There was a problem hiding this comment.
Maybe LGTM. I'll debug this in this weekend.
There was a problem hiding this comment.
LGTM 👍
BTW, the current implementation (before this PR) behavior is similar to many of ORM first method (like Rails's first, Laravel's first ...etc). Honestly, I don't like this. Because it can't find a post uniquely and sometimes users can't notice.
I know this behavior is generally in ORM. But, many hexo users may confusing.
P.S:
Anyway we should merge this PR and move forward.
|
Yes, the slug is unique, so there is no confusion. However, for the users, titles are more intuitive than the slug, so I believe this patch will improve usability when there're no duplicate titles. |
What does it do?
Issue resolved: #5042
Issue resolved: #4778
Screenshots
Pull request tasks