Skip to content

Prevent panic when creating new content if also created by content adapter #12504

Open
@jmooring

Description

@jmooring

These are all minor, and should probably be separated into individual issues at some point, but for now...

1) If a content adapter creates p1, attempting to create p1.md with hugo new causes a panic.

2) If p1.md exists, and a content adapter creates p1, the content adapter wins. It seems to me it should be the other way around; p1.md should override the content adapter. For example, a module provides content, and you need to override one of the pages provided by the module. See comments below.

3) If p1.md exists, and a content adapter creates p1, the --printPathWarnings flag does not report a page collision. See comments below.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions