We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e61990b + fc93609 commit 8012363Copy full SHA for 8012363
layouts/robots.txt
@@ -1,5 +1,5 @@
1
User-agent: *
2
-{{- if eq .Site.Params.environment "staging" }}Disallow: /
+{{ if eq .Site.Params.environment "staging" }}Disallow: /
3
{{- else }}{{ range where .Site.Pages ".Params.noindex" true }}
4
Disallow: {{ .RelPermalink }}
5
{{ end -}}
0 commit comments