Socket
Book a DemoInstallSign in
Socket

hexo-generator-robotstxt-host

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-generator-robotstxt-host

Basic robots.txt generator plugin for Hexo with Host options

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

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

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

License

MIT License

Keywords

hexo

FAQs

Package last updated on 24 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.