Netlify 为雨果网站构建错误 - 如何解决?

问题描述 投票:0回答:1

当尝试通过Netlify渲染一个基于雨果的网站时,会返回以下错误。

1:39:23 PM: ERROR 2019/09/21 17:39:23 Unable to load gallery in /opt/build/repo/content/home/gallery/index.md.

整个日志是 此处.

我试图部署的网站的来源是 此处.

我在许多网站上搜索了这个错误或它可能代表的其他问题,但没有成功地理解为什么会返回这个错误。

hugo netlify
1个回答
0
投票

尝试添加 netlify.toml 傍边 config.toml 并重试。netlify.toml 内容应该是这样的。

[build]
publish = "public"
command = "hugo"

[context.production.environment]
HUGO_VERSION = "0.69.2"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
© www.soinside.com 2019 - 2024. All rights reserved.