From 601ff81c6269d1c2db6ee004bb66671c2f0336ce Mon Sep 17 00:00:00 2001 From: dereklseitz Date: Sun, 7 Sep 2025 08:15:51 -0500 Subject: [PATCH] Feat: Add robots.txt to prevent demo site from being indexed A robots.txt file has been added to the root of the site. It uses a blanket "Disallow: /" rule with an "Allow: /credits/" exception to ensure only the attributions page is indexed by search engines. --- .eleventy.js | 1 + src/robots.txt | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 src/robots.txt diff --git a/.eleventy.js b/.eleventy.js index 2c4af6a..12b77ca 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -2,6 +2,7 @@ module.exports = function (eleventyConfig) { eleventyConfig.addPassthroughCopy({ "src/images": "images" }); eleventyConfig.addPassthroughCopy({ "src/styles": "styles" }); eleventyConfig.addPassthroughCopy({ "src/scripts": "scripts" }); + eleventyConfig.addPassthroughCopy({ "src/robots.txt": "robots.txt"}); return { dir: { input: "src", diff --git a/src/robots.txt b/src/robots.txt new file mode 100644 index 0000000..4eef0f3 --- /dev/null +++ b/src/robots.txt @@ -0,0 +1,3 @@ +User-agent:* +Disallow: / +Allow: /credits/ \ No newline at end of file