【发布时间】:2023-03-19 02:32:01
【问题描述】:
我正在尝试创建自己的 [Geekdown HUGO 网站][1] 版本。
我正在通过 RStudio 加载项开始一个新项目,并将 thegeeklab/hugo-geekdoc 作为主题。但是,当它全部加载完毕后,为网站提供服务将立即中断,并重复以下错误消息:
ERROR 2021/01/13 14:13:02 render of "page" failed: execute of template failed: template: _default/single.html:5:7: executing "_default/single.html" at <partial "head" .>: error calling partial: "D:\Stefan\Gradient\Repositories\handbook\themes\hugo-geekdoc\layouts\partials\head.html:18:29": execute of template failed: template: partials/head.html:18:29: executing "partials/head.html" at <index .Site.Data.assets "main.min.css">: error calling index: index of untyped nil
要重现,只需这样做:
blogdown::new_site(theme = 'thegeeklab/hugo-geekdoc')
在使用 blogdown、hugo 等主题之前,我还没有遇到过这样的错误。 [1]:https://themes.gohugo.io/hugo-geekdoc/
【问题讨论】:
-
我知道在这种情况下出了什么问题(repo 本身不是一个完整的主题,完整的主题存在于 Github 版本中)。我稍后会发布答案。谢谢!