From 506e9abbff90a407e683fa3e554f9d46d16a1065 Mon Sep 17 00:00:00 2001 From: Simon C Date: Wed, 25 Nov 2020 17:53:12 +0100 Subject: [PATCH] feat: Add template for robots.txt --- layouts/robots.txt | 2 ++ robots.txt | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 layouts/robots.txt delete mode 100644 robots.txt diff --git a/layouts/robots.txt b/layouts/robots.txt new file mode 100644 index 0000000..1ae7abf --- /dev/null +++ b/layouts/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: {{ if ne .Hugo.Environment "production" }}/{{ end }} diff --git a/robots.txt b/robots.txt deleted file mode 100644 index 1f53798..0000000 --- a/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: /