hugo-next / hugo-theme-next

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

使用Hugo v0.92.2 版本编译运行主题失败 #14

Closed elkan1788 closed 2 years ago

elkan1788 commented 2 years ago

我的hugo版本: hugo v0.92.2-CDF6A0D6+extended windows/amd64 BuildDate=2022-02-11T14:17:39Z VendorInfo=gohugoio

$ hugo server
Start building sites …
hugo v0.92.2-CDF6A0D6+extended windows/amd64 BuildDate=2022-02-11T14:17:39Z VendorInfo=gohugoio
Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:6:5: executing "main" at <partial "post.html" (dict "ctx" . "IsHome" false)>: error calling partial: execute of template failed: template: partials/post.html:19:9: executing "partials/post.html" at <partial "post/header.html" (dict "ctx" .ctx "IsHome" .IsHome)>: error calling partial: execute of template failed: template: partials/post/header.html:29:7: executing "partials/post/header.html" at <partial "post/header_meta/categories.html" .>: error calling partial: "C:\Hugo\hugo-next-exmaple\themes\hugo-theme-next\layouts\partials\post\header_meta\categories.html:2:35": execute of template failed: template: partials/post/header_meta/categories.html:2:35: executing "partials/post/header_meta/categories.html" at <len .Params.categories>: error calling len: reflect: call of reflect.Value.Type on zero Value
Built in 77 ms

Originally posted by @luqicoder in https://github.com/hugo-next/hugo-theme-next/discussions/13