From e6dad8a6a2ba80512e46bfdbb6c5dffde2056b69 Mon Sep 17 00:00:00 2001 From: Martin Pittermann Date: Sun, 8 May 2022 12:51:56 +0200 Subject: [PATCH] Revert "list pages with robotsNoIndex in robots.txt" This reverts commit 724b999be4c1299d8481b25ef13cc7c98cd7a6db. --- layouts/robots.txt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/layouts/robots.txt b/layouts/robots.txt index 480f619..f26f508 100644 --- a/layouts/robots.txt +++ b/layouts/robots.txt @@ -1,12 +1,6 @@ User-agent: * {{- if hugo.IsProduction | or (eq site.Params.env "production") }} -{{- $noIndexPages := where .Site.Pages "Params.robotsNoIndex" true }} -{{- range $noIndexPages }} -Disallow: {{ .RelPermalink }} -{{- end }} -{{- if not $noIndexPages }} Disallow: -{{- end }} {{- else }} Disallow: / {{- end }}