如何修改hugo的主页?

Aik*_*ura 5 hugo

如何将 /posts 作为主页?

我应该重定向、更改hugo 1配置中的baseURL还是在主题2配置中进行更改?

脚注

1 https://gohugo.io/getting-started/configuration/

2 https://github.com/luizdepra/hugo-coder/wiki/Configurations

小智 2

您可以修改 home.html 文件,因为 index.html 文件正在嵌入它,并且 index.html 中没有其他内容

https://github.com/luizdepra/hugo-coder/blob/master/layouts/partials/home.html

在 theme/layouts/partials/home.html 中的上述文件中进行更改,这些更改将在您保存文件后立即在网站上生效(如果您已经在运行$ hugo server -D)