about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-07-10 18:45:21 +0200
committerAlan Pearce2019-07-10 18:45:21 +0200
commite9e0e0fb8abca4fb7e500f1b124ba1cc581dfa07 (patch)
tree68e6f2a40f21db0033d5127dfa7a44ab765895e6
parent69f2d50de355e2d6ba2e4dc14fdefb77fb232452 (diff)
downloadwebsite-e9e0e0fb8abca4fb7e500f1b124ba1cc581dfa07.tar.lz
website-e9e0e0fb8abca4fb7e500f1b124ba1cc581dfa07.tar.zst
website-e9e0e0fb8abca4fb7e500f1b124ba1cc581dfa07.zip
Disallow Googlebot
-rw-r--r--layouts/partials/hook_head_end.html3
-rw-r--r--static/robots.txt3
2 files changed, 5 insertions, 1 deletions
diff --git a/layouts/partials/hook_head_end.html b/layouts/partials/hook_head_end.html
index 3442304..13e0ec6 100644
--- a/layouts/partials/hook_head_end.html
+++ b/layouts/partials/hook_head_end.html
@@ -1 +1,2 @@
-<link href="{{ if .IsPage }}{{ .Permalink | replaceRE "/$" "" }}{{ else }}{{ .Permalink }}{{ end }}" rel="canonical">
\ No newline at end of file
+<link href="{{ if .IsPage }}{{ .Permalink | replaceRE "/$" "" }}{{ else }}{{ .Permalink }}{{ end }}" rel="canonical">
+<meta name="googlebot" content="noindex">
diff --git a/static/robots.txt b/static/robots.txt
index 4acd2e6..ef30e6f 100644
--- a/static/robots.txt
+++ b/static/robots.txt
@@ -2,3 +2,6 @@ User-agent: *
 Disallow:
 Host: alanpearce.eu
 Sitemap: https://alanpearce.eu/sitemap.xml
+
+User-agent: googlebot
+Disallow: /