Skip to content

Local build fails with Hugo v0.78.2 #9

@cirulls

Description

@cirulls

I have a more recent version of Hugo installed locally on my machine (v0.78.2) and I noticed that a build to generate the website locally fails with this error message:

execute of template failed: template: partials/highlight-js.html:1:10: executing "partials/highlight-js.html" at <(not (isset 
.Params "highlight")) and ((isset .Params "highlight") .Params.highlight)>: can't give argument to non-function not (isset .Params
 "highlight")                                                                                                                               

I managed to get around this by installing a previous version of the hugo binary (namely v0.70 which is the version used by the GitHub Action) and then use that previous binary to successfully generate the website locally.

I did a quick investigation and this issue may be relevant (although I have not investigated it further).

Ideally we would like to use a more recent version of the hugo binary, make sure it works locally, and then update this line on the GitHub Action to use a more recent version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions