【问题标题】:Hugo Theme Error雨果主题错误
【发布时间】:2017-10-11 03:28:19
【问题描述】:

运行“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 和主题是最新的。我该如何解决这个问题?

谢谢

【问题讨论】:

    标签: web themes hugo


    【解决方案1】:

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

    admins = [] # array of Facebook IDs

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

    【讨论】:

    • code[params.opengraph] [params.opengraph.facebook] admins = ""
    • 应该是一个数组
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-09-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-14
    • 1970-01-01
    相关资源
    最近更新 更多