-
Migrating site to doks and managed to get three pages into the migration, then hugo dev server crashed with I admit to attempting to setup the vscode extension "Frontmatter", to act as a embeded CMS for the site, but I The output does indicate the error is associated with recieving a zero length value for "contributors" in the WARN deprecated: .Site.IsMultiLingual was deprecated in Hugo v0.124.0 and will be removed in a future release. Use hugo.IsMultilingual instead.
ERROR render of "term" failed: "/website/node_modules/@thulite/doks-core/layouts/_default/term.html:47:15":
execute of template failed: template: _default/term.html:47:15:
executing "main" at <partial "main/blog-meta.html" .>:
error calling partial: "/website/node_modules/@thulite/doks-core/layouts/partials/main/blog-meta.html:1:17":
execute of template failed: template: partials/main/blog-meta.html:1:17:
executing "partials/main/blog-meta.html" at <len .Params.contributors>:
error calling len: reflect: call of reflect.Value.Type on zero Value
INFO build: step render pages 37 content 33 duration 4.315598387s
INFO build: step render deferred count 0 duration 4.126µs
INFO build: step postProcess duration 19.148945ms
INFO build: duration 4.550655948s
Built in 5303 ms
Error: error building site: render: failed to render pages:
render of "term" failed: "/website/node_modules/@thulite/doks-core/layouts/_default/term.html:47:15":
execute of template failed: template: _default/term.html:47:15: executing "main" at <partial "main/blog-meta.html" .>:
error calling partial: "/website/node_modules/@thulite/doks-core/layouts/partials/main/blog-meta.html:1:17":
execute of template failed: template: partials/main/blog-meta.html:1:17: executing "partials/main/blog-meta.html" at <len .Params.contributors>:
error calling len: reflect: call of reflect.Value.Type on zero Value |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Add contributors: [] |
Beta Was this translation helpful? Give feedback.
That didn't take nearly as much time as I thought, and I don't know why I didn't think to do that last night. I found the buggers, it was the "terms of service" page and the "about us" page.
Needed to define the type. Apparently, not doing so resulted in the pages being interpreted as blog posts. I guess...
Another important notation: Doks uses a special type just for pages with legal content,
type: "legal"
, such as "Privacy Policy" and "Terms of Service". Application of this type causes the page to be center aligned, and applies various other style settings.