Skip to content

Int Typecast #1190

@Secretmapper

Description

@Secretmapper

Might be related to #620.

Can I even typecast ints in hugo?

Running:
substr .Permalink (add (len .Site.BaseURL) 3) (len .Permalink)

produces the error:
wrong type for value; expected int; got int64

Because of the (add (len .Site.BaseURL) 3)

I am using 0.14 by the way

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions