Add robots.txt (#652)

This commit is contained in:
Patrice Chalin 2021-02-16 10:06:00 -05:00 committed by GitHub
parent adf2c6720d
commit 4d859cf2ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,7 @@ pygmentsCodeFences: true
theme: ['docsy']
enableGitInfo: true
enableRobotsTXT: true
contentDir: 'content/en'
defaultContentLanguage: 'en'

View File

@ -1,5 +1,6 @@
---
title: Daily builds
robots: noindex, nofollow
weight: 90
# Note: this is a placeholder page. The URL to this page redirects elsewhere.
---

View File

@ -1,5 +1,6 @@
---
title: Daily builds
robots: noindex, nofollow
weight: 90
# Note: this is a placeholder page. The URL to this page redirects elsewhere.
---

View File

@ -1,5 +1,6 @@
---
title: Daily builds
robots: noindex, nofollow
weight: 90
# Note: this is a placeholder page. The URL to this page redirects elsewhere.
---

View File

@ -1,5 +1,6 @@
---
title: Daily builds
robots: noindex, nofollow
weight: 90
# Note: this is a placeholder page. The URL to this page redirects elsewhere.
---

7
layouts/robots.txt Normal file
View File

@ -0,0 +1,7 @@
User-agent: *
Disallow: /get_grpcurl
{{ range .Pages -}}
{{ if in (lower .Params.robots) "noindex" -}}
Disallow: {{ .RelPermalink }}
{{ end -}}
{{ end -}}