Skip to content

Consider empty strings in Param() as "not found" #3366

@bep

Description

@bep

I'm not totally sure about this, but @budparr has a theme where he in front matter (for archetype reasons) have:

- featured_image: ""

And when doing

{{ .Param "featured_image" }}

You will not get the desired effect of getting the image defined in site config. May be something to think about, but we should maybe fix archetypes to allow comments. Keep this as a reminder for a while ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions