summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2026-05-08 22:08:44 +0200
committerTom Smeding <tom@tomsmeding.com>2026-05-08 22:08:44 +0200
commitd5b9294e6ba7197bf71c49d32690883c19a28e6a (patch)
tree07a51aa5826ef762fc600b0a022a813c31e784f8 /src
parente3ea04d8e71370032da56ad9ea66dcb82d257812 (diff)
Add robots.txt
Hopefull this prevents crawlers from hitting all the ?eid= links...
Diffstat (limited to 'src')
-rw-r--r--src/Main.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 247b345..b65d67e 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -246,7 +246,7 @@ mainServe confpath = do
index <- initIndex (confLogsDir config) (econfChannels config)
let templateFiles = ["index", "log", "calendar", "calendar-day"]
- staticFiles = ["style.css"]
+ staticFiles = ["style.css", "robots.txt"]
pages <- fmap (Pages . Map.fromList) . forM templateFiles $ \name -> do
src <- T.readFile ("pages/" ++ name ++ ".mustache")