我使用Hugo和Minimo主题创建了一个网站。我设置了站点,并且在两台计算机上都可以正常工作(一个是Windows,另一个是Mac)。但是,当另一位作者尝试使用render_site()
命令时,它将引发以下错误:
Building sites … ERROR 2018/08/11 22:49:17 Error while rendering "page" in "post\\": template: _default/single.html:1:3: executing "_default/single.html" at <partial "header" .>: error calling partial: template: partials/header.html:10:7: executing "partials/header.html" at <partial "sidebar/sid...>: error calling partial: template: partials/sidebar/sidebar.html:10:6: executing "partials/sidebar/sidebar.html" at <partial "extras/widg...>: error calling partial: template: partials/extras/widget_area.html:7:8: executing "partials/extras/widget_area.html" at <partial (print "widg...>: error calling partial: template: partials/widgets/taxonomy_cloud.html:18:5: executing "partials/widgets/taxonomy_cloud.html" at <partial "extras/taxo...>: error calling partial: template: partials/extras/taxonomy_cloud.html:32:24: executing "partials/extras/taxonomy_cloud.html" at <$Site.GetPage>: error calling GetPage: too many arguments to .Site.GetPage: [taxonomyTerm tags apresentação]. Use lookups on the form {{ .Site.GetPage "/posts/mypage-md" }}
Building sites … ERROR 2018/08/11 22:49:18 Error while rendering "page" in "post\\": template: _default/single.html:1:3: executing "_default/single.html" at <partial "header" .>: error calling partial: template: partials/header.html:10:7: executing "partials/header.html" at <partial "sidebar/sid...>: error calling partial: template: partials/sidebar/sidebar.html:10:6: executing "partials/sidebar/sidebar.html" at <partial "extras/widg...>: error calling partial: template: partials/extras/widget_area.html:7:8: executing "partials/extras/widget_area.html" at <partial (print "widg...>: error calling partial: template: partials/widgets/taxonomy_cloud.html:18:5: executing "partials/widgets/taxonomy_cloud.html" at <partial "extras/taxo...>: error calling partial: template: partials/extras/taxonomy_cloud.html:32:24: executing "partials/extras/taxonomy_cloud.html" at <$Site.GetPage>: error calling GetPage: too many arguments to .Site.GetPage: [taxonomyTerm tags apresentação]. Use lookups on the form {{ .Site.GetPage "/posts/mypage-md" }}
The system cannot find the path specified.
Error in shell(cmd, mustWork = TRUE, intern = intern) :
'"C:\Users\pedro\AppData\Roaming\Hugo\hugo.exe" -b / -D -F -d "public" -t minimo' execution failed with error code 1
In addition: Warning messages:
1: running command '"C:\Users\pedro\AppData\Roaming\Hugo\hugo.exe" -b / -D -F -d "public" -t minimo' had status 65535
2: running command '"C:\Users\pedro\AppData\Roaming\Hugo\hugo.exe" -b / -D -F -d "public" -t minimo' had status 65535
3: running command 'C:\WINDOWS\system32\cmd.exe /c "C:\Users\pedro\AppData\Roaming\Hugo\hugo.exe" -b / -D -F -d "public" -t minimo' had status 1
我已尽力复制,但无济于事。我们尝试过更改目录(他在Google云端硬盘中使用过该目录,我们认为我可能是符号链接问题)。我的任何计算机都没有此问题。
我不知道这是否有用,但是:我的两台计算机都是葡萄牙语,另一位作者使用的是英语计算机。
预先感谢
答案 0 :(得分:0)
降级解决了该问题。主题中进行了一些更新,这些更新仅适用于新版本,因此必须注意这一点。