从 netlify cms 采购

Sourcing from netlify cms

我遵循了 Gatsby 网站上的教程。我有 'hello world' https://admiring-bose-8807f8.netlify.com/ 站点 运行。我创建了一个 post,但一直无法显示。我正在使用 gatsby-source-filesystem 插件。我的gatsby-config.js文件如下:

module.exports = {
  /* Your site config here */
  plugins: [
    `gatsby-plugin-netlify-cms`,
    {
      resolve: `gatsby-source-filesystem`,
      options: {
        name: `blog`,
        path: `${__dirname}/blog`
      },
    },
    `gatsby-transformer-remark`,
    ]
}

我的config.yml是

backend:
  name: github
  repo: jamesgrubb/Gatsbycms

media_folder: static/assets
public_folder: assets

collections:
  - name: blog
    label: Blog
    folder: blog
    create: true
    fields:
      - { name: path, label: Path }
      - { name: date, label: Date, widget: date }
      - { name: title, label: Title }
      - { name: body, label: Body, widget: markdown }

当我进入管理员并单击创建一个新文件时 post 我有以下文件

我输入了以下字符串:

我应该如何格式化我的 URL?我试过了: https://admiring-bose-8807f8.netlify.com/blog/first-blog/Title

不开心?

任何想法

我在 github 上查看了您的存储库,我认为您错过了必须查询降价文件然后在 gatsby-node.js 中呈现它们的部分。检查这个 official tutorial or inspect the official blog starter source.