Skip to content

Site fails to buid with error: error calling len: reflect: call of reflect.Value.Type on zero Value for contributors value in blog template. #1279

Answered by anoduck
anoduck asked this question in Support
Discussion options

You must be logged in to vote

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.

type: "legal"

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@h-enk
Comment options

@anoduck
Comment options

@anoduck
Comment options

Answer selected by anoduck
@anoduck
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants