about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaweł Dybiec <pawel@dybiec.info>2023-10-02 19:33:04 +0100
committerPaweł Dybiec <pawel@dybiec.info>2023-10-02 19:33:04 +0100
commitd81c8754ebf6dbcc89c2339e9dbd2705f274154a (patch)
treea2533371b06a596e048507f2024775e0e5964f86
parentFlakeify (diff)
Add robots.txt
-rw-r--r--robots.txt5
-rw-r--r--site.hs4
2 files changed, 9 insertions, 0 deletions
diff --git a/robots.txt b/robots.txt
new file mode 100644
index 0000000..ed8c524
--- /dev/null
+++ b/robots.txt
@@ -0,0 +1,5 @@
+User-agent: GPTBot
+Disallow: /
+
+User-agent: *
+Allow: /
\ No newline at end of file
diff --git a/site.hs b/site.hs
index 7abbee7..7d88da9 100644
--- a/site.hs
+++ b/site.hs
@@ -15,6 +15,10 @@ main = hakyll $ do
         route   idRoute
         compile copyFileCompiler
 
+    match (fromList ["robots.txt"]) $ do
+        route   idRoute
+        compile copyFileCompiler
+
     match "css/*" $ compile compressCssCompiler
     create ["style.css"] $ do
         route idRoute