当我使用 Hugo 运行 server_site() 时,为什么 RStudio 会显示此错误?

问题描述

三个月前,我使用 Hugo 通过 Rstudio 创建了我的网站,一切顺利。但是现在我想添加一些帖子,我在运行 blogdown:::server_site() 时遇到了错误,具体来说:

    C:/Users/AppData/Roaming/Hugo/0.79.1/hugo.exe server --bind 127.0.0.1 -p 4321 --themesDir themes -t personal-web -D -F --navigatetochanged
Error: Error building site: Failed to render pages: render of "home" Failed: execute of template Failed: template: index.html:1:3: executing "index.html" at <partial "header" .>: error calling partial: execute of template Failed: template: partials/header.html:3:4: executing "partials/header.html" at <partial "head/head" .>: error calling partial: "C:\Users\R\website\layouts\partials\head\head.html:5:43": execute of template Failed: template: _internal/opengraph.html:5:43: executing "_internal/opengraph.html" at <.>: range can't iterate over /image

我检查了 Github 中的链接,该链接显然修复了此错误 https://github.com/rstudio/blogdown/commit/da1321100ffb9ee0f729ff060ba079ff7edb53cc,但我没有看到 serve.R 文件在我的计算机上的位置,因此我无法对其进行编辑。因此,我不知道该怎么做才能解决错误

提前致谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)