summaryrefslogtreecommitdiff
path: root/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/robots.txt
diff options
context:
space:
mode:
Diffstat (limited to '_vendor/github.com/adityatelange/hugo-PaperMod/layouts/robots.txt')
-rw-r--r--_vendor/github.com/adityatelange/hugo-PaperMod/layouts/robots.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/robots.txt b/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/robots.txt
new file mode 100644
index 0000000..f26f508
--- /dev/null
+++ b/_vendor/github.com/adityatelange/hugo-PaperMod/layouts/robots.txt
@@ -0,0 +1,7 @@
+User-agent: *
+{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
+Disallow:
+{{- else }}
+Disallow: /
+{{- end }}
+Sitemap: {{ "sitemap.xml" | absURL }}