Fix publish filename resolution - #5805
Conversation
How to testgit clone -b fix/publish-unpublish-filename-resolution https://github.com/hexojs/hexo.git
cd hexo
npm install
npm test |
There was a problem hiding this comment.
I think the original contribution should be preserved here. The description references #4995 by @awongCM in prose, but all commits are authored by you, so their contribution doesn't appear in the git history. When a change builds on an existing implementation, that attribution should be carried in the commits themselves, not only referenced in the PR description.
Given that, I think one of the following should happen:
dc2a403 to
69968ef
Compare
|
Thanks for pointing this out. I agree that the original contribution and its Git history should be preserved. I have split the changes and force-pushed the PR on top of the latest |
What does it do?
This PR fixes draft filename resolution used by
hexo publish:.mdand.mkd._drafts, including nested directories.foofrom incorrectly matchingfoo-bar.mdorfoobar.md.filename_caseconfiguration.The destination filename continues to follow the existing
new_post_namebehavior.This PR intentionally does not include the
unpublishcommand or implementation. That work remains in #4995 so the original contribution and commit history are preserved.Fixes #1821.
Supersedes #5476.
Screenshots
N/A — this change only affects CLI behavior.
Pull request tasks