Skip to content

Failed to render breadcrumb in an alternative site structure #163

@gundamew

Description

@gundamew

Won't fix. It fixes if Docsy has bumped to newer version.

Just a guide for someone who has same question.

If you want to build a site having docs at the root with Docsy Example Project. And you stuck with the error below when running hugo server:

ERROR 2022/03/02 11:51:34 Failed to render pages: render of "home" failed: execute of template failed: template: docs/list.html:23:62: executing "docs/list.html" at <partial "breadcrumb.html" .>: error calling partial: "/path/to/hugo-site/themes/docsy/layouts/partials/breadcrumb.html:2:18": execute of template failed: template: partials/breadcrumb.html:2:18: executing "partials/breadcrumb.html" at <.Parent.IsHome>: nil pointer evaluating page.Page.IsHome

All you have to do is upgrade Docsy:

$ git submodule update --remote --merge

This issue was fixed with google/docsy#807.


References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions