diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-23 17:01:52 +0300 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-23 17:01:52 +0300 |
| commit | fc07b509fe2da1e9baeb67869bc2fb3992990de4 (patch) | |
| tree | 15fafad11e13d8132729281994c2dba9eef716c9 /layouts/robots.txt | |
| parent | bffd956eee9a06c7531b8810b10f0cc4425929fd (diff) | |
| download | gohugo-theme-ed-fc07b509fe2da1e9baeb67869bc2fb3992990de4.tar.gz | |
Rework alternate links, add sitemap support
Diffstat (limited to 'layouts/robots.txt')
| -rw-r--r-- | layouts/robots.txt | 3 |
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 }} |
