坛子里的大佬,有谁知道怎么设置hugo的链接格式,想把xxx.com/post/2019727xxx.com/post/2019727这样的格式设置为xxx.com/post/2019727xxx.com/post/2019727.html这样,谢谢大佬们的指导了
陕西网友:调一下 [permalinks] 试一下
湖南网友:参数选项没看到啊
北京网友:不好意思没用过hugo,hexo的配置可以参考下
修改_config.yml
- # URL
- ## If your site is put in a subdirectory, set url as ‘http://yoursite.com/child’ and root as ‘/child/’
- url: https://xxx.net
- root: /
- permalink: :title.html
- permalink_defaults:
复制代码
香港网友:huho没看到这个配置
未经允许不得转载:美国VPS_搬瓦工CN2 GIA VPS » Hugo如何设置链接格式