From 879758008c0671518db01140c671d06f5e047431 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sat, 18 Mar 2023 13:09:02 -0400 Subject: [PATCH] disallow /admin in robots.txt --- config.toml | 1 + layouts/.gitkeep | 0 layouts/robots.txt | 2 ++ 3 files changed, 3 insertions(+) delete mode 100644 layouts/.gitkeep create mode 100644 layouts/robots.txt diff --git a/config.toml b/config.toml index 1d7c819..12ebfdd 100644 --- a/config.toml +++ b/config.toml @@ -1,3 +1,4 @@ baseURL = 'http://example.org/' languageCode = 'en-us' title = 'My New Hugo Site' +enableRobotsTXT = true \ No newline at end of file diff --git a/layouts/.gitkeep b/layouts/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/layouts/robots.txt b/layouts/robots.txt new file mode 100644 index 0000000..f8a0a9b --- /dev/null +++ b/layouts/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /admin