Skip to content

tpl: Allow interface{} params to more funcs #2822

@moorereason

Description

@moorereason

The following template functions only accept string inputs:

  • getenv
  • hasPrefix
  • lower
  • title
  • upper

These should be updated to accept interface{} params.

See https://discuss.gohugo.io/t/hasprefix-function-doesnt-work-as-expected/4891

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions