1

我正在尝试将我的网站主题更改为hugo-xmin,但我无法让网站正确呈现。我得到了我想要的主页(如下),但是我没有得到这个Contact页面(我也没有在public目录中看到它)。

在此处输入图像描述

另外,我看不到格式正确的帖子,我看到目录类型的列表,并且在categoriesor中tags也看不到任何内容。

帖子页面粘贴在下面

在此处输入图像描述

我收到 的404消息Contact,如下所示(可能是因为文件夹中没有contact.htmlpublic

我试图理解blogdown书中主题的文档,但我无法取得太大进展。这里的任何帮助将不胜感激!

该站点的源代码可以在 - https://github.com/sn248/sn248.github.io找到

我正在使用blogdownversion0.20hugoversion - 0.75.1Rversion -4.0.2rmarkdownversion - 2.3

谢谢!

萨提亚

4

1 回答 1

1

I just created a PR on Github to fix your issue. As I mentioned there, index.md has a special meaning in Hugo (index file for leaf bundles), and you should use _index.md here (i.e., content/_index.md instead of content/index.md). See https://gohugo.io/content-management/page-bundles/ for more information about bundles in Hugo.

于 2020-09-29T17:12:47.313 回答