From 4b6678512dcfe8883f1ed95f3a936f0a4d8933e0 Mon Sep 17 00:00:00 2001 From: Thanwer Date: Sun, 27 Oct 2024 14:53:10 -0300 Subject: [PATCH] Add robots.txt file --- hugo.toml | 2 +- layouts/robots.txt | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 layouts/robots.txt diff --git a/hugo.toml b/hugo.toml index 6ba9d0f..496d669 100644 --- a/hugo.toml +++ b/hugo.toml @@ -2,7 +2,7 @@ baseURL = '/' languageCode = 'en-us' theme = "anubis2" title = "Thanwer's Blog" - +enableRobotsTXT = true defaultContentLanguage = 'en' [languages] diff --git a/layouts/robots.txt b/layouts/robots.txt new file mode 100644 index 0000000..b72d1d5 --- /dev/null +++ b/layouts/robots.txt @@ -0,0 +1,5 @@ +User-agent: * +Allow: / +Sitemap: https://blog.thanwer.com/sitemap.xml +Sitemap: https://blog.thanwer.com/en/sitemap.xml +Sitemap: https://blog.thanwer.com/pt/sitemap.xml