雨果主题错误
Hugo Theme Error
我在 运行 "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
Hugo 和主题是最新的。我该如何解决这个问题?
谢谢
在您的 TOML 配置中,确保 admins 数组为空或使用逗号分隔的字符串列表正确设置。
admins = [] # array of Facebook IDs
如果这不能解决您的问题,请更新到最新版本的 Hugo 可执行文件。 latest
我在 运行 "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
Hugo 和主题是最新的。我该如何解决这个问题?
谢谢
在您的 TOML 配置中,确保 admins 数组为空或使用逗号分隔的字符串列表正确设置。
admins = [] # array of Facebook IDs
如果这不能解决您的问题,请更新到最新版本的 Hugo 可执行文件。 latest