1.1.0 • Published 9 months ago

hexo-robotstxt-multisitemaps v1.1.0

Weekly downloads
4
License
ISC
Repository
github
Last release
9 months ago

hexo-robotstxt-multisitemaps

Fork from leecrossley / hexo-generator-robotstxt

A very simple plugin to generate a robots.txt file automatically for Hexo 3.

Usage

Install

npm install hexo-robotstxt-multisitemaps --save

Enable

Add hexo-robotstxt-multisitemaps to plugins in _config.yml.

plugins:
- hexo-robotstxt-multisitemaps

Add config for robots.txt to _config.yml.

robotstxt:
  useragent: "*"
  disallow:
    - /one_file_to_disallow.html
    - /2nd_file_to_disallow.html
    - /3rd_file_to_disallow.html
  allow:
    - /one_file_to_allow.html
    - /2nd_file_to_allow.html
    - /3rd_file_to_allow.html
  sitemap: 
    - /sitemap.xml
    - /baidu_sitemap.xml

Settings & their defaults values

SettingDescriptionDefault
useragentSet the User-Agent*
disallowDisallow files or folders for this User-Agent
allowAllow files or folders for this User-Agent
sitemapSet the path to your sitemap

Example

How to auto generate sitemap and robots.txt for your web page powered by hexo

License

MIT License

1.1.0

9 months ago

1.0.0

3 years ago