From 7ad7ce22fc8c3511cc6728e88a0058e786e1766c Mon Sep 17 00:00:00 2001 From: slashformotion Date: Fri, 18 Feb 2022 10:49:20 +0100 Subject: [PATCH] feat: Add robots.txt --- layouts/robots.txt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 layouts/robots.txt diff --git a/layouts/robots.txt b/layouts/robots.txt new file mode 100644 index 0000000..af6d90e --- /dev/null +++ b/layouts/robots.txt @@ -0,0 +1,7 @@ +User-agent: * +{{- if hugo.IsProduction | or (eq .Site.Params.env "production") }} +Allow: / +{{- else }} +Disallow: / +{{- end }} +Sitemap: {{ "sitemap.xml" | absURL }} \ No newline at end of file