我的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
我的hugo版本: hugo v0.92.2-CDF6A0D6+extended windows/amd64 BuildDate=2022-02-11T14:17:39Z VendorInfo=gohugoio
Originally posted by @luqicoder in https://github.com/hugo-next/hugo-theme-next/discussions/13