0.7.0 • Published 10 months ago

kerouac-robotstxt v0.7.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 months ago

kerouac-robotstxt

Kerouac middleware that gives instructions to web crawlers using the Robots Exclusion Protocol.

Install

$ npm install kerouac-robotstxt

Usage

Declare a robots.txt route, using this middleware.

var robots = require('kerouac-robotstxt');

site.page('/robots.txt', robots());

And map a robots.txt file when generating the site.

site.generate([
  robots.createMapper()
]);

The generated output will include a /robots.txt file. If your site contains any sitemaps, which can be generated using kerouac-sitemap, the locations of those sitemaps will be included so that search engines can automatically discover all pages of your site.

License

The MIT License

Copyright (c) 2012-2022 Jared Hanson [https://www.jaredhanson.me/](https://www.jaredhanson.me/)

0.7.0

10 months ago

0.6.0

10 months ago

0.5.0

1 year ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

12 years ago