我有一个托管在GitHub页面上的网站:https://mcbridebr.github.io/mysite-hugo/ 我将其设置为从master分支中的docs/目录发布到页面。当我运行hugo时,它将发布到docs/。 我可以很好地调出主页。但当我点击博客时,它会转到404。我有一篇博客文章在content/ post /下面是空白的。如果我在本地运行它,并使用localhost:1313访问它,那么博客链接就可以工作。
我可以用hugo new posts/new-page添加一个新页面。但是我想添加一个页面包。下列任何一项工作
hugo new posts/2021/10/new-page创建了一个单一的新页面。as hugo new posts/2021/10/new-page/与上面的hugo new posts/2021/10/new-page/index.