【问题标题】:Failed to render pages. Failed: execute of template. Blogdown 1.6, Hugo Aperó 0.89.4, R 4.1.2,Netlify无法呈现页面。失败:执行模板。 Blogdown 1.6、Hugo Aperó 0.89.4、R 4.1.2、Netlify
【发布时间】:2022-01-13 14:17:58
【问题描述】:

在将 R 升级到 4.1.2 版、将 blogdown 升级到 1.6 和 Hugo-Aperó 到 0.89.4 后,我无法使用 blogdown:::serve_site() 命令在本地渲染我的网站,并且我无法在 Netlify 更新网站.

我收到的错误


 - Launching the server via the command:   hugo server --bind 127.0.0.1
   -p 4321 --themesDir themes -t hugo-apero -D -F --navigateToChanged Error: Error building site: failed to render pages: render of "page"
   failed: execute of template failed: template:
   _default/single.html:3:8: executing "_default/single.html" at <partial "head.html" .>: error calling partial: execute of template
   failed: template: _internal/schema.html:24:82: executing
   "_internal/schema.html" at <.Params.tags>: range can't iterate over
   Data Science

知道如何解决它吗?

【问题讨论】:

    标签: netlify hugo blogdown


    【解决方案1】:

    YAML 元数据中的 tags 字段必须是数组而不是标量,即写入

    tags: ["Data Science"]
    

    而不是

    tags: "Data Science"
    

    这是我最好的猜测,没有可重复的例子。如果这不是问题,请提供一个可重现的示例(强烈建议您每次都这样做)。

    【讨论】:

      猜你喜欢
      • 2019-06-17
      • 1970-01-01
      • 2023-03-19
      • 2020-10-09
      • 2021-09-25
      • 2019-10-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多