summaryrefslogtreecommitdiffstats
path: root/layouts/robots.txt
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-23 17:01:52 +0300
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-23 17:01:52 +0300
commitfc07b509fe2da1e9baeb67869bc2fb3992990de4 (patch)
tree15fafad11e13d8132729281994c2dba9eef716c9 /layouts/robots.txt
parentbffd956eee9a06c7531b8810b10f0cc4425929fd (diff)
downloadgohugo-theme-ed-fc07b509fe2da1e9baeb67869bc2fb3992990de4.tar.gz
Rework alternate links, add sitemap support
Diffstat (limited to 'layouts/robots.txt')
-rw-r--r--layouts/robots.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/layouts/robots.txt b/layouts/robots.txt
index c59438e..c07f0df 100644
--- a/layouts/robots.txt
+++ b/layouts/robots.txt
@@ -4,8 +4,7 @@ User-agent: *
{{- if eq (getenv "HUGO_ENV") "production" | or (eq site.Params.env "production") }}
Allow: /
-# TODO: implement sitemap.xml
-# Sitemap: {{ "stemap.xml" | absURL }}
+Sitemap: {{ "/stemap.xml" | absURL }}
{{- else }}
Disallow: /
{{- end }}