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(console-new): support default title from path #4714

Merged
merged 2 commits into from Nov 27, 2022

Conversation

xu-song
Copy link
Contributor

@xu-song xu-song commented Jun 7, 2021

What does it do?

Before this commit, we can create a post by

hexo new --path hexo/hexo-tutorial hexo-tutorial 

Hexo create a file source/_posts/hexo/hexo-tutorial.md with title title: hexo-tutorial

In many cases, the title has the same value of basename of path, this commit simplify above script

hexo new --path hexo/hexo-tutorial                # title=basename(path)  by default

How to test

git clone -b patch-1 https://github.com/xu-song/hexo.git

@coveralls
Copy link

coveralls commented Jun 8, 2021

Coverage Status

Coverage decreased (-0.05%) to 98.696% when pulling c336d6e on xu-song:patch-1 into 58a8f8c on hexojs:master.

@github-actions github-actions bot added the stale label Nov 28, 2021
@github-actions github-actions bot closed this Dec 6, 2021
@github-actions
Copy link

How to test

git clone -b patch-1 https://github.com/xu-song/hexo.git
cd hexo
npm install
npm test

@SukkaW SukkaW added feature-request enhancement New feature or request labels Mar 29, 2022
Copy link
Member

@stevenjoezhang stevenjoezhang left a comment

Choose a reason for hiding this comment

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

👍

@stevenjoezhang stevenjoezhang added this to the 7.0.0 milestone Nov 26, 2022
@stevenjoezhang stevenjoezhang changed the title [new feature] support default title from path in hexo new feat(console-new): support default title from path Nov 27, 2022
@stevenjoezhang stevenjoezhang merged commit 03436ef into hexojs:master Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature-request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants