From f676ee028d7ea2bcb29d4d41263abd0edb2f21ba Mon Sep 17 00:00:00 2001 From: Gabriele Bozzola Date: Sun, 9 Oct 2022 18:12:14 -0700 Subject: Add option to ask crawlers to not index a page With this commit, pages can be marked as "noindex" to avoid indexing from search engines. To activate this tag on a give page, the option `noindex` has to be set true at the beginning on the markdown file, as in: ``` +++ title = "Example" noindex = true +++ ``` --- layouts/partials/head.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'layouts/partials') 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 }} + + {{ end }} -- cgit v1.2.3