Skip to content

[Bug]: Local build failure: deprecated .Site.IsServer syntax in Hugo them #45

@rishav-raj-genx

Description

@rishav-raj-genx

What happened?

When attempting to build the website locally using a modern version of Hugo (v0.114+), the build fails with the following template execution error:
can't evaluate field IsServer in type page.Site
This occurs because the scientific-python-hugo-theme uses the deprecated .Site.IsServer command instead of the global hugo.IsServer. I am opening a PR shortly with layout overrides to fix this without modifying the upstream submodule.

What browser are you seeing the problem on?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions