aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorOlivier Roques <ojroques@users.noreply.github.com>2022-10-10 09:53:41 +0200
committerGitHub <noreply@github.com>2022-10-10 09:53:41 +0200
commit0523d351937d652fc01c2a69dd7e6301a60a70e5 (patch)
treeed9f3a2fdcf24483f1d737e4424b528e99a6ef2f /layouts/partials
parent60fd8186bff740860f1c77c37e8e1cd26bbc6d3e (diff)
parentf676ee028d7ea2bcb29d4d41263abd0edb2f21ba (diff)
Merge pull request #32 from Sbozzolo/master
Add option to ask crawlers to not index a page
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/head.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index b4c5357..f01e36b 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -25,4 +25,8 @@
{{ if not .Site.IsServer }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}
+
+ {{ if .Params.noindex }}
+ <meta name="robots" content="noindex">
+ {{ end }}
</head>