aboutsummaryrefslogtreecommitdiffstats
path: root/src/gen/robot.11ty.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/gen/robot.11ty.js')
-rw-r--r--src/gen/robot.11ty.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gen/robot.11ty.js b/src/gen/robot.11ty.js
new file mode 100644
index 0000000..289d3b6
--- /dev/null
+++ b/src/gen/robot.11ty.js
@@ -0,0 +1,13 @@
+module.exports = class {
+ data() {
+ return {
+ permalink: "/robot.txt"
+ };
+ }
+
+ render(data) {
+ return `User-agent: *
+ Disallow:
+ Sitemap: ${new URL("/sitemap.xml",data.metadata.url)}`;
+ }
+}; \ No newline at end of file