From 00ff061e95ba18d7483bc797f08cc936d5ca2c04 Mon Sep 17 00:00:00 2001 From: Steve Scargall <37674041+sscargal@users.noreply.github.com> Date: Wed, 10 Sep 2025 22:42:20 +0000 Subject: [PATCH] Enabled robots.txt Signed-off-by: Steve Scargall <37674041+sscargal@users.noreply.github.com> --- hugo.toml | 2 ++ themes/memmachine/layouts/robots.txt | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 themes/memmachine/layouts/robots.txt diff --git a/hugo.toml b/hugo.toml index 422ea62..3f55e91 100644 --- a/hugo.toml +++ b/hugo.toml @@ -6,6 +6,8 @@ theme = 'memmachine' defaultContentLanguage = "en" defaultContentLanguageInSubdir = false +enableRobotsTXT = true + [permalinks] blogs = "/blog/:year/:month/:title/" diff --git a/themes/memmachine/layouts/robots.txt b/themes/memmachine/layouts/robots.txt new file mode 100644 index 0000000..69d8c31 --- /dev/null +++ b/themes/memmachine/layouts/robots.txt @@ -0,0 +1,8 @@ +User-agent: * +Allow: / + +# Sitemap links for the site including multilingual variants +Sitemap: {{ "sitemap.xml" | absURL }} +{{ range .Site.Languages }} +Sitemap: {{ printf "/%s/sitemap.xml" .Lang | absURL }} +{{ end }}