0
我使用https://github.com/netlify-templates/kaldi-hugo-cms-templateNetlifyCMS -
我在config.yml創建一個新的集合(「頁」)和.MD文件位於網站/內容沒有找到收藏的內容。該網站的前端在localhost和Netlify上看起來很好。在本地主機:3000 /管理員也顯示我的「網頁」,我可以編輯它們,但當我去mysite.netlify.com/admin/#collections/pages我只看到「加載條目」。
下面是我收集
collections: # A list of collections the CMS should be able to edit
- name: "pages"
label: "Site pages"
folder: "site/content"
create: true #
fields:
- {label: Title, name: title, widget: string}
- {label: Description, name: description, widget: string}
- {label: Intro, name: intro, widget: object, fields: [{label: Heading, name: heading, widget: string}, {label: Description, name: description, widget: markdown}, {label: Subheading, name: subheading, widget: string}, {label: Primary call-to-action url, name: url, widget: string}, {label: Primary call to action, name: cta, widget: string}, {label: Secondary call-to-action url, name: url2, widget: string}, {label: Secondary call-to-action, name: cta2, widget: string}, {label: Blurbs, name: blurbs, widget: list, fields: [{label: Head, name: head, widget: string}, {label: Text, name: text, widget: markdown}]}]}
- {label: Outro, name: outro, widget: object, fields: [{label: Heading, name: heading, widget: string}, {label: Blurbs, name: blurbs, widget: list, fields: [{label: Image, name: image, widget: image}, {label: Text, name: text, widget: markdown}]}]}