Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netlify CMS - creates empty content #7

Open
andreasbalevik opened this issue Jan 20, 2022 · 0 comments
Open

Netlify CMS - creates empty content #7

andreasbalevik opened this issue Jan 20, 2022 · 0 comments
Labels
kind/bug Used when there is a defect / something is not working as it should. solution/netlify Issues related to Netlify CMS

Comments

@andreasbalevik
Copy link
Contributor

andreasbalevik commented Jan 20, 2022

Hugo structures content like this:

content:
  news:
    article-1:
      index.md
    article-2:
      index.md 
    index.md

Netlify CMS looks at content/news. And we want article-1 and article-2 to be available in the CMS, but not index.md under news which is the list view for news.

To solve this the collection news is configures with filter: {field: "cmsedit", value: true}.

The problem is that when new content is created. 2 new files are submited to the pull request. index.nb.md and index.en.md even if you only provided content for ìndex.nb.md`.

Since we have configured the collection to add cmsedit:true to new content. A file is created for each language type.

@altinnadmin altinnadmin added solution/netlify Issues related to Netlify CMS kind/bug Used when there is a defect / something is not working as it should. labels Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Used when there is a defect / something is not working as it should. solution/netlify Issues related to Netlify CMS
Projects
None yet
Development

No branches or pull requests

2 participants