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.
This commit is contained in:
2025-09-07 08:15:51 -05:00
parent 732be668f7
commit 601ff81c62
2 changed files with 4 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ module.exports = function (eleventyConfig) {
eleventyConfig.addPassthroughCopy({ "src/images": "images" }); eleventyConfig.addPassthroughCopy({ "src/images": "images" });
eleventyConfig.addPassthroughCopy({ "src/styles": "styles" }); eleventyConfig.addPassthroughCopy({ "src/styles": "styles" });
eleventyConfig.addPassthroughCopy({ "src/scripts": "scripts" }); eleventyConfig.addPassthroughCopy({ "src/scripts": "scripts" });
eleventyConfig.addPassthroughCopy({ "src/robots.txt": "robots.txt"});
return { return {
dir: { dir: {
input: "src", input: "src",

3
src/robots.txt Normal file
View File

@@ -0,0 +1,3 @@
User-agent:*
Disallow: /
Allow: /credits/