Skip to content

Reduce duplication between Netlify CMS config and schema files #205

Open
@timwis

Description

@timwis

We already have schemas defined (for datasets, resources, and categories) in _data/schemas/default.yml. See #60 for background.

Configuring Netlify CMS results in quite a lot of duplication here (e.g. Netlify CMS' config.yml vs our existing schema file). That's probably okay for an MVP, but ideally we'd consolidate them, to avoid them getting out of sync.

One thought I had was to have Jekyll run Netlify CMS' config.yml file through its template engine (by adding double --- at the top). This would allow us to effectively generate the collection configuration. But there are some Netlify CMS specific fields that we'd then have to move into the existing schema file. (As an aside, there's also the issue that Netlify CMS uses {{squiggly brackets}} for certain fields like summary). Haven't thought about it much more beyond that yet, but would love to hear thoughts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions