
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
hexo-console-rename
Advanced tools
Hexo console plug-in to rename post file according to its title
Hexo console plug-in to rename post file according to its title, if asset folder is also renamed if exsits
Install using npm.
For hexo 2.x
$ npm install hexo-console-rename@2 --save
For hexo 3.x
$ npm install hexo-console-rename@3 --save
To know more about this plug-in, check out this post.
$ hexo rename source/_post/some_post_with_wrong_file_name.md
[find] source/_post/some_post_with_wrong_file_name.md
[rename] source/_post/some_post_with_wrong_file_name.md -> source/_post/new_file_name_from_title.md
[rename] source/_post/some_post_with_wrong_file_name -> source/_post/new_file_name_from_title
IMPORTANT TIP Commit all your files into git before excute this command
$ hexo r source/**/*.md
[find] source/_drafts/name.md
[find] source/_posts/2014-08-18-name.md
[find] source/_posts/codepen.md
[find] source/_posts/image.md
[find] source/_posts/cool_post.md
[find] source/_posts/new_post.md
[rename] source/_drafts/name.md -> source/_drafts/name-is-cool.md
[rename] source/_posts/2014-08-18-name.md -> source/_posts/2014-08-18-name-is-something-really-cool.md
[rename] source/_drafts/name -> source/_drafts/name-is-cool
[rename] source/_posts/2014-08-18-name -> source/_posts/2014-08-18-name-is-something-really-cool
When no arg is passed, it is equals to hexo rename source/_posts/*.*
$ hexo rename
[find] source/_posts/2014-03-02-new_post.md
[find] source/_posts/2014-08-18-name.md
[rename] source/_posts/2014-08-18-name.md -> source/_posts/2014-08-18-name-is-something-really-cool.md
[rename] source/_posts/2014-08-18-name -> source/_posts/2014-08-18-name-is-something-really-cool
hexo-console-rename
can be used not only sync file name with title
, it does more.
If you have timestamp
in your file name, then if you updated the date
field in your front-matter. You'll probably wish to update the file name also.
hexo-console-rename
can help you on this.
IMPORTANT TIP Commit all your files into git before excute this command
$ hexo r source/**/*.md
[find] source/_posts/2014-08-18-name.md
[find] source/_posts/codepen.md
[find] source/_posts/image.md
[find] source/_posts/cool_post.md
[find] source/_posts/new_post.md
[rename] source/_posts/2014-08-18-name.md -> source/_posts/2014-08-19-name.md
[rename] source/_posts/2014-08-18-name -> source/_posts/2014-08-19-name
Suppose you update the new_post_name
field in your _config.yml
, then you might wish to migrate all post to fit the new name pattern.
hexo-console-rename
can help you on this. You need to specify the old pattern with --old-permalink
(-p
for short), then all post will be migrated automatically.
Suppose you changed new_post_name
from :title.md
to :year-:month-:day-:title.md
.
IMPORTANT TIP Commit all your files into git before excute this command
$ hexo r -p ':title.md' source/**/*.md
[find] source/_posts/2014-08-17-codepen.md
[find] source/_posts/2014-08-18-name-is-something-really-cool.md
[find] source/_posts/2014-08-19-name-is-cool.md
[find] source/_posts/image.md
[find] source/_posts/post.md
[find] source/_posts/cool-post.md
[rename] source/_posts/image.md -> source/_posts/2014-08-15-image.md
[rename] source/_posts/cool-post.md -> source/_posts/2014-08-15-post.md
[rename] source/_posts/.md -> source/_posts/2014-08-15-cool-post.md
[rename] source/_posts/image -> source/_posts/2014-08-15-image
[rename] source/_posts/post -> source/_posts/2014-08-15-post
[rename] source/_posts/cool-post -> source/_posts/2014-08-15-cool-post
MIT
FAQs
Hexo console plug-in to rename post file according to its title
The npm package hexo-console-rename receives a total of 0 weekly downloads. As such, hexo-console-rename popularity was classified as not popular.
We found that hexo-console-rename demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.