oleeskild / digitalgarden

275 stars 158 forks source link

Support for robots.txt #191

Closed wheresalice closed 1 year ago

wheresalice commented 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' });
oleeskild commented 1 year ago

You should be able to achieve this by adding that line in the src/helpers/userSetup.js as described here