From 44f4d624093032a0a566d5f5651e8cb088107f26 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 10 Aug 2021 11:59:18 -0700 Subject: feat(meta): robots.txt Thanks, Martin! --- content/robots.txt | 2 ++ handler.go | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 content/robots.txt diff --git a/content/robots.txt b/content/robots.txt new file mode 100644 index 0000000..d4c2cca --- /dev/null +++ b/content/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /x diff --git a/handler.go b/handler.go index 321a225..4cd9c27 100644 --- a/handler.go +++ b/handler.go @@ -30,5 +30,6 @@ func errors() { func meta() { createFileRoute("/favicon.txt", "favicon.txt") - createFileRoute("/favicon.ico", "favicon.ico") + createFileRoute("/favicon.ico", "favicon.ico") + createFileRoute("/robots.txt", "robots.txt") } -- cgit v1.2.3