Gatsby 从netlify cms采购
我跟随盖茨比网站上的教程。我有“hello world”网站正在运行。我已经创建了一个帖子,但一直坚持要让它显示出来。我正在使用盖茨比源文件系统插件。我的gatsby-config.js文件如下:Gatsby 从netlify cms采购,gatsby,netlify-cms,Gatsby,Netlify Cms,我跟随盖茨比网站上的教程。我有“hello world”网站正在运行。我已经创建了一个帖子,但一直坚持要让它显示出来。我正在使用盖茨比源文件系统插件。我的gatsby-config.js文件如下: module.exports = { /* Your site config here */ plugins: [ `gatsby-plugin-netlify-cms`, { resolve: `gatsby-source-filesystem`, o
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 }
当我进入管理员并点击创建一个新帖子时,我有以下文件
路径
日期
标题
身体
我已输入以下字符串:
路径:/first blog/
日期:预填
标题:标题
身体:同侧眼睑
我应该如何格式化我的URL?我试过:
没有欢乐
有什么想法吗?我在github上查看了您的回购协议&我想您错过了查询降价文件然后在gatsby-node.js中呈现它们的部分。检查此项或检查