hexojs / hexo

A fast, simple & powerful blog framework, powered by Node.js.
https://hexo.io
MIT License
38.82k stars 4.75k forks source link

feat: add option to use slug as title of post #5470

Closed uiolee closed 1 month ago

uiolee commented 2 months ago

What does it do?

use slug as title of post when title is not specified.

closed #5372

Screenshots

Pull request tasks

github-actions[bot] commented 2 months ago

Flamegraph

https://3fc8d4fd4e699700cba7676b67e3b62818aa9e1b-14-hexo.surge.sh/flamegraph.html https://3fc8d4fd4e699700cba7676b67e3b62818aa9e1b-16-hexo.surge.sh/flamegraph.html https://3fc8d4fd4e699700cba7676b67e3b62818aa9e1b-18-hexo.surge.sh/flamegraph.html

coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 8773964452

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Totals Coverage Status
Change from base Build 8720332933: 0.001%
Covered Lines: 9293
Relevant Lines: 9384

💛 - Coveralls
stevenjoezhang commented 2 months ago

See also https://github.com/hexojs/hexo/pull/4344 Adding a new option is a good solution, especially if the theme does not support empty titles

github-actions[bot] commented 2 months ago

How to test

git clone -b filename https://github.com/hexojs/hexo.git
cd hexo
npm install
npm test