Skip to content

Commit c6fd43c

Browse files
committed
adds robots.txt per search.gov recs
1 parent c669bfe commit c6fd43c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.eleventy.js

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ module.exports = function (config) {
2727
// Copy the `admin` folders to the output
2828
config.addPassthroughCopy('admin');
2929

30+
// Copy the robots.txt file to the output
31+
config.addPassthroughCopy('robots.txt');
32+
3033
// Copy USWDS init JS so we can load it in HEAD to prevent banner flashing
3134
config.addPassthroughCopy({'./node_modules/@uswds/uswds/dist/js/uswds-init.js': 'assets/js/uswds-init.js'});
3235

robots.txt

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Sitemap: https://guides.18f.gov/sitemap.xml
2+
3+
User-agent: usasearch
4+
Allow: /
5+
Crawl-delay: 2
6+
7+
User-agent: *
8+
Allow: /
9+
Crawl-delay: 10

0 commit comments

Comments
 (0)