hexo文章url路径自定义
hexo默认url路径是 年/月/日/文章标题,这样其实不利于SEO。
通过修改配置文件_config.yml
来改变hexo生成文章的路径。
1 |
|
permalink原来默认是:year/:month/:day/:title/
我这里改成:title/
之后生成文章的url中就没有时间了。
还可以自定义文章路径
1 |
|
文章内容:
1 |
|
这样文章的url就会是http://wekri.com/1cb337723bca4c5bb87814fec45c9466
了
参考
hexo文章url路径自定义
https://www.wekri.com/other/hexo-article-url-path-customization/