From 9d6d9c5313ef10c91108fe2d53b119285bae6a65 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 11 May 2023 16:33:38 +0200 Subject: [PATCH] keep out all robots for now --- src/Main.hs | 8 ++++---- _redirects => static/_redirects | 0 static/robots.txt | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) rename _redirects => static/_redirects (100%) create mode 100644 static/robots.txt diff --git a/src/Main.hs b/src/Main.hs index 641119b..ec4b721 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -29,10 +29,6 @@ stripPathPrefix (splitDirectories -> prefix) = main :: IO () main = hakyllWith config $ do - match "_redirects" $ do - route idRoute - compile copyFileCompiler - frontendManifest <- preprocess $ Yaml.decodeFileThrow @_ @(Map String [FilePath]) "frontend/dist/.manifest.yaml" @@ -66,3 +62,7 @@ main = hakyllWith config $ do compile copyFileCompiler match "templates/*" $ compile templateBodyCompiler + + match "static/**" $ do + route $ stripPathPrefix "static" + compile copyFileCompiler diff --git a/_redirects b/static/_redirects similarity index 100% rename from _redirects rename to static/_redirects diff --git a/static/robots.txt b/static/robots.txt new file mode 100644 index 0000000..1f53798 --- /dev/null +++ b/static/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /