hexo-robots
v1.0.1
Published
a hexo plugin that help you create robots.txt file when you build the site.
Downloads
244
Readme
hexo-robots
a hexo plugin that help you create robots.txt file when you build the site.
config
the following is the default config when you install this plugin.
// hexo _config.yml
robots:
user_agent: "*"
allow:
- /
- /archives/
- /page/
- /schedule/
- /tags/
disallow:
- /js/
- /css/
- /images/
sitemaps:
if you have multi user_agent config you can use the following way: robots: user_agent: "*" allow: - / - /archives/ - /page/ - /schedule/ - /tags/ disallow: - /js/ - /css/ - /images/ sitemaps: more: - user_agent: "other_agent_name_1" allow: - / - /archives/ - /page/ - /schedule/ - /tags/ disallow: - /js/ - /css/ - /images/ - user_agent: "other_agent_name_2" allow: - / - /archives/ - /page/ - /schedule/ - /tags/ disallow: - /js/ - /css/ - /images/