Closed wheresalice closed 1 year ago
It would be great if we could make it easy to manage a robots.txt file. Specifically, I want to be able to easily block the Googlebot.
As I understand it, this requires some configuration in .eleventy.js which would be overwritten by any PRs to update the template:
eleventyConfig.addPassthroughCopy({ 'src/robots.txt': '/robots.txt' });
You should be able to achieve this by adding that line in the src/helpers/userSetup.js as described here
src/helpers/userSetup.js
It would be great if we could make it easy to manage a robots.txt file. Specifically, I want to be able to easily block the Googlebot.
As I understand it, this requires some configuration in .eleventy.js which would be overwritten by any PRs to update the template: