雨果主题错误

时间:2017-10-10 16:28:13

标签: web themes hugo

运行“hugo -t minimo”时收到以下错误:

ERROR 2017/10/10 18:25:34 Error while rendering "page": template: theme/_default/single.html:1:3: executing "theme/_default/single.html" at <partial "header" .>: error calling partial: template: theme/partials/header.html:4:3: executing "theme/partials/header.html" at <partial "head/head" ...>: error calling partial: template: theme/partials/head/head.html:2:5: executing "theme/partials/head/head.html" at <partial "head/meta" ...>: error calling partial: template: theme/partials/head/meta.html:5:3: executing "theme/partials/head/meta.html" at <partial "head/opengr...>: error calling partial: template: theme/partials/head/opengraph.html:102:12: executing "theme/partials/head/opengraph.html" at <.admins>: range can't iterate over 
雨果和主题是最新的。我该如何解决这个问题?

由于

1 个答案:

答案 0 :(得分:3)

在您的TOML配置中,确保admins数组为空或使用逗号分隔的字符串列表正确设置。

admins = [] # array of Facebook IDs

如果这不能解决您的问题,请更新到最新版本的Hugo可执行文件。 latest