Skip to content

feat(console-new): support default title from path#4714

Merged
stevenjoezhang merged 2 commits intohexojs:masterfrom
xu-song:patch-1
Nov 27, 2022
Merged

feat(console-new): support default title from path#4714
stevenjoezhang merged 2 commits intohexojs:masterfrom
xu-song:patch-1

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.

4 participants