Skip to content

NPE for $parent.File.UniqueID using Hugo 0.123.1. #1874

@chalin

Description

@chalin

Originally posted by @chulcher in #1863 (comment)

This appears to be further broken with Hugo 0.123.1.

ERROR render of "taxonomy" failed:
"C:\Users\Carson\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\google\docsy@v0.9.1\layouts\docs\list.html:12:5": execute of template failed: template: docs/list.html:12:5: executing "main" at <partial "section-index.html" .>: error calling partial: "C:\Users\Carson\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\google\docsy@v0.9.1\layouts\partials\section-index.html:8:69": execute of template failed: template: partials/section-index.html:8:69: executing "partials/section-index.html" at <$parent.File.UniqueID>: error calling UniqueID: runtime error: invalid memory address or nil pointer dereference
Built in 936 ms
Error: error building site: render: failed to render pages: render of "taxonomy" failed: "C:\Users\Carson\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\google\docsy@v0.9.1\layouts\docs\list.html:12:5": execute of template failed: template: docs/list.html:12:5: executing "main" – File is nil; wrap it in if or with: {{ with partial "section-index.html" .>: error calling partial: "C:\Users\Carson\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\google\docsy@v0.9.1\layouts\partials\section-index.html:8:69": execute of template failed: template: partials/section-index.html:8:69: executing "partials/section-index.html" at <.File }}{{ .UniqueID }}{{ end }}

gohugoio/hugo#12068, specifically gohugoio/hugo#12068 (comment) relevant?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions