当我启动雨果服务器时,我得到以下警告。
我得到错误的Git Repo: https://github.com/jayrp11/mysite
WARN 2022/06/09 16:04:59 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2022/06/09 16:04:59 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2022/06/09 16:04:59 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2022/06/09 16:04:59 found no layout file for "HTML" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
我可以看到网站工作得很好。我能够看到内容,但我不确定为什么在控制台出现这些错误?
我确认这些警告来自p1。Md和p2。md文件。我是hugo的新手,并试图为每个子页面创建一个带有摘要内容的页面。更好的实现方式是什么?
把这个放到你的配置文件中:
disableKinds:
- taxonomy
并在layouts/_default/
目录中添加一个single.html和一个list.html。