From d6d94ff0879be00fc30778b4733bb9d4a391fb84 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 21 Sep 2016 22:37:39 +0300 Subject: [PATCH] Add robots.txt template Advertises the XML sitemap and allows all user agents, but is only enabled if the site sets this property in their config: enableRobotsTXT = true See: https://gohugo.io/extras/robots-txt/ --- layouts/robots.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 layouts/robots.txt diff --git a/layouts/robots.txt b/layouts/robots.txt new file mode 100644 index 0000000..a4eb7ea --- /dev/null +++ b/layouts/robots.txt @@ -0,0 +1,3 @@ +Sitemap: {{ .Site.BaseURL }}sitemap.xml + +User-agent: *