hexo-generator-robotstxt

0.2.0 • Public • Published

hexo-generator-robotstxt

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

Usage

Install

npm install hexo-generator-robotstxt --save

Enable

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

plugins:
- hexo-generator-robotstxt

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

Settings & their defaults values

Setting Description Default
useragent Set the User-Agent *
disallow Disallow files or folders for this User-Agent
allow Allow files or folders for this User-Agent
sitemap Set the path to your sitemap

License

MIT License

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    84
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    84
  • 0.1.2
    0
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i hexo-generator-robotstxt

Homepage

ilee.co.uk

Weekly Downloads

69

Version

0.2.0

License

none

Last publish

Collaborators

  • leecrossley