hugo-next / hugo-theme-next

Easily & powerful theme for Hugo engine.
https://hugo-next.eu.org
MIT License
214 stars 38 forks source link

变更仓库,主题报错 #1

Closed gclm closed 2 years ago

gclm commented 2 years ago

更换成新的仓库链接报下面的错误。

运行指令:hugo server -D hugo 版本:hugo v0.101.0-466fa43c16709b4483689930a4f9ac8add5c9f66+extended darwin/amd64

Start building sites … 
hugo v0.101.0-466fa43c16709b4483689930a4f9ac8add5c9f66+extended darwin/amd64 BuildDate=2022-06-16T07:09:16Z VendorInfo=gohugoio
ERROR 2022/06/22 10:03:57 render of "page" failed: "/Users/gclm/blog/themes/hugo-theme-next/layouts/_default/baseof.html:6:18": execute of template failed: template: _default/single.html:6:18: executing "_default/single.html" at <index $vendors $pluginVen>: error calling index: value is nil; should be of type string
ERROR 2022/06/22 10:03:57 render of "taxonomy" failed: "/Users/gclm/blog/themes/hugo-theme-next/layouts/_default/baseof.html:6:18": execute of template failed: template: _default/terms.html:6:18: executing "_default/terms.html" at <index $vendors $pluginVen>: error calling index: value is nil; should be of type string
ERROR 2022/06/22 10:03:57 render of "section" failed: "/Users/gclm/blog/themes/hugo-theme-next/layouts/_default/baseof.html:6:18": execute of template failed: template: _default/section.html:6:18: executing "_default/section.html" at <index $vendors $pluginVen>: error calling index: value is nil; should be of type string
ERROR 2022/06/22 10:03:57 render of "term" failed: "/Users/gclm/blog/themes/hugo-theme-next/layouts/_default/baseof.html:6:18": execute of template failed: template: _default/taxonomy.html:6:18: executing "_default/taxonomy.html" at <index $vendors $pluginVen>: error calling index: value is nil; should be of type string
Error: Error building site: failed to render pages: render of "term" failed: "/Users/gclm/blog/themes/hugo-theme-next/layouts/_default/baseof.html:6:18": execute of template failed: template: _default/taxonomy.html:6:18: executing "_default/taxonomy.html" at <index $vendors $pluginVen>: error calling index: value is nil; should be of type string
Built in 30 ms
elkan1788 commented 2 years ago

@gclm 你是说从原来 hugo-theme-next 切换到现在的新主题吗?这两者是不兼容的哦,如果建议使用 develop 分支,克隆到本地后可切换到 exampleSite 文件下,有个 start. sh 脚本,直接在本地预览下效果。

gclm commented 2 years ago

你是说从原来 hugo-theme-next 切换到现在的新主题吗?

是的

如果建议使用 develop 分支,克隆到本地后可切换到 exampleSite 文件下,有个 start. sh 脚本,直接在本地预览下效果。

我先研究一下。感觉突然换成yml有点不太适应

elkan1788 commented 2 years ago

采用 yaml 的原因主要有2个方面:

现在主题还没有正式发布,要是有些使用上的问题,可以在 gitter 在线聊天提问。:grin: