如何在 Hexo 中重命名 post
How to Rename post in Hexo
如何在 hexo 中重命名已发布的 post?
目前,我正在删除现有的 post 并通过从旧的 post 复制包含来创建新的 post。
有更好的方法吗?
除了像您提到的那样删除 post 并重新创建它,您还可以重命名 post 的文件名、YAML header 中的标题和资产文件夹。
您也可以使用 hexo-console-renamer 插件。使用它,更改 YAML header 中 post 的标题。那么,运行
hexo rename source/_post/some_post_with_wrong_file_name.md
- 重命名 post
- 运行
hexo clean
- 运行
hexo generate
- 运行
hexo deploy
如何在 hexo 中重命名已发布的 post?
目前,我正在删除现有的 post 并通过从旧的 post 复制包含来创建新的 post。
有更好的方法吗?
除了像您提到的那样删除 post 并重新创建它,您还可以重命名 post 的文件名、YAML header 中的标题和资产文件夹。
您也可以使用 hexo-console-renamer 插件。使用它,更改 YAML header 中 post 的标题。那么,运行
hexo rename source/_post/some_post_with_wrong_file_name.md
- 重命名 post
- 运行
hexo clean
- 运行
hexo generate
- 运行
hexo deploy