【文件属性】:
文件名称:gatsby-plugin-robots-txt:Gatsby插件,可为您的网站自动创建robots.txt
文件大小:154KB
文件格式:ZIP
更新时间:2021-04-28 23:57:04
gatsby robots-txt gatsby-plugin JavaScript
gatsby-plugin-robots-txt
为您的Gatsby网站创建robots.txt 。
安装
yarn add gatsby-plugin-robots-txt
或者
npm install --save gatsby-plugin-robots-txt
如何使用
gatsby-config.js
module . exports = {
siteMetadata : {
siteUrl : 'https://www.example.com'
} ,
plugins : [ 'gatsby-plugin-robots-txt' ]
} ;
选项
该插件使用生成robots.txt内容,并且具有以下选项:
名称
类型
默认
描述
host
String
${siteMetadata.siteUrl}
您网站的托管人
sitemap
Stri
【文件预览】:
gatsby-plugin-robots-txt-master
----.gitignore(1KB)
----.babelrc(219B)
----.eslintrc(295B)
----package.json(1KB)
----sonar-project.properties(216B)
----src()
--------gatsby-node.js(2KB)
----LICENSE(1KB)
----index.js(8B)
----.github()
--------workflows()
--------dependabot.yml(232B)
----README.md(7KB)
----.eslintignore(61B)
----appveyor.yml(479B)
----test()
--------.eslintrc(36B)
--------gatsby-node.test.js(3KB)
--------__snapshots__()
----.editorconfig(147B)
----.prettierrc(42B)
----yarn.lock(375KB)