【问题标题】:NetlifyCMS - Collection content not foundNetlifyCMS - 未找到集合内容
【发布时间】:2017-04-27 10:59:08
【问题描述】:

我正在使用https://github.com/netlify-templates/kaldi-hugo-cms-template

我在 config.yml 中创建了一个新集合(“页面”),并且 .md 文件位于站点/内容中。该站点的前端在 localhost 和 Netlify 上看起来不错。在 localhost:3000/admin 还显示我的“页面”,我可以编辑它们,但是当我转到 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}]}]}

【问题讨论】:

    标签: webpack gulp content-management-system netlify netlify-cms


    【解决方案1】:

    尝试“mysite.netlify.com/admin/”(注意尾部斜杠)。很多 Hugo 安装体验 Hugo 同时输出 admin.html 和 admin/index.html,只有后者可以工作。

    【讨论】:

      猜你喜欢
      • 2019-12-12
      • 2017-08-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-27
      相关资源
      最近更新 更多