gatsby-plugin-draft::memo:Gatsby 插件,用于添加草稿字段

时间:2021-07-24 05:38:50
【文件属性】:
文件名称:gatsby-plugin-draft::memo:Gatsby 插件,用于添加草稿字段
文件大小:312KB
文件格式:ZIP
更新时间:2021-07-24 05:38:50
JavaScript 盖茨比插件草案 用于向节点添加草稿字段的 GatsbyJS 插件。 该插件添加了draft 字段来决定是否发布到Gatsby 的数据系统节点。 例如,当我们构建博客(使用gatsby-transformer-remark )时,GatsbyJS 会创建MarkdownRemark节点。 该节点具有frontmatter属性。 如果frontmatter包含date元数据,则gatsby-plugin-draft自动将draft值添加到 Gatsby 的节点字段。 安装 # npm $ npm install gatsby-plugin-draft # or yarn $ yarn add gatsby-plugin-draft 如何使用 gatsby-config.js 与降价 您需要添加gatsby-source-filesystem和gatsby-transformer-rema
【文件预览】:
gatsby-plugin-draft-main
----utils.js(255B)
----index.js(0B)
----package.json(975B)
----__tests__()
--------utils.js(317B)
--------fixtures()
--------gatsby-node.js(3KB)
----.github()
--------workflows()
----.prettierrc(68B)
----.prettierignore(16B)
----LICENSE(1KB)
----.eslintrc.js(110B)
----examples()
--------content()
--------package.json(654B)
--------gatsby-config.js(1KB)
--------src()
--------.gitignore(14B)
--------README.md(168B)
--------yarn.lock(580KB)
--------gatsby-node.js(2KB)
----.gitignore(63B)
----README.md(6KB)
----yarn.lock(164KB)
----.eslintignore(25B)
----gatsby-node.js(2KB)

网友评论