Last week I had everything working. The admin interface showed populated feilds for items that corresponded to my yml
file. Now when I visit the adming CMS nothing is populated, despite the names in the front matter matching those in the config. And now when I go to just enter in new content it overwrites the entire “src/site/index.html”, not just the front matter.
I haven’t made any changes except paste a html file on the outermost parent folder. And upon discovering my issue, deleting it.
my config:
collections:
- label: "Pages"
name: "pages"
files:
- label: "Homepage"
name: "homepage"
file: "src/site/index.html"
fields:
- {label: Layout, name: "layout", widget: "hidden", default: "layouts/base.html"}
- {label: Title, name: page_title, widget: string}
- label: "Featured Works"
name: "featuredWorks"
widget: "list"
summary: '{{fields.title}}'
label_singular: "Work"
fields:
- {label: Image, name: image, widget: image}
- {label: Title, name: title, widget: string,required: false}
- {label: Description, name: description, widget: text,required: false}
- label: "Services"
name: "services"
widget: "list"
summary: '{{fields.title}}'
label_singular: "service"
fields:
- {label: Title, name: title, widget: string}
- {label: Description, name: description, widget: text}
And a snippet of my front matter for “src/site/index.html”
---
layout: layouts/base.html
title: Home
page_title: Featured
featuredWorks:
- image: /site/img/IMG_8729.jpeg
title: Title 1
description: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Pellentesque a sapien scelerisque, accumsan arcu eu, congue nisl. Duis
iaculis sapien urna, sit amet ultricies tellus pulvinar sed. Mauris quis
arcu est. Sed efficitur ipsum mi, id euismod velit pellentesque eu.
Maecenas quis pulvinar ipsum.
services:
- title: "Service A"
description: "lorem"