add robots.txt

Signed-off-by: liuboaibc <kukudehero@gmail.com>
This commit is contained in:
liuboaibc 2021-04-20 11:14:46 +08:00
parent 6855545ed1
commit e63dee174c
8 changed files with 14 additions and 6 deletions

View File

@ -1,5 +1,7 @@
baseURL = "https://kubesphere-v3.netlify.app"
enableRobotsTXT = true
[markup]
[markup.tableOfContents]
endLevel = 3

View File

@ -2,7 +2,7 @@
title: KubeSphere Api Documents
description: KubeSphere Api Documents
keywords: KubeSphere, KubeSphere Documents, Kubernetes
disallow: true
swaggerUrl: json/crd.json
---

View File

@ -2,6 +2,6 @@
title: KubeSphere Api Documents
description: KubeSphere Api Documents
keywords: KubeSphere, KubeSphere Documents, Kubernetes
disallow: true
swaggerUrl: json/kubesphere.json
---

View File

@ -1,7 +1,7 @@
---
title: "contribution request"
layout: "request"
disallow: true
css: "scss/contribution.scss"
section1:

View File

@ -2,7 +2,7 @@
title: "partner request"
layout: "request"
disallow: true
css: "scss/partner.scss"
section1:

View File

@ -1,7 +1,7 @@
---
title: "contribution request"
layout: "request"
disallow: true
css: "scss/contribution.scss"
section1:

View File

@ -2,7 +2,7 @@
title: "partner request"
layout: "request"
disallow: true
css: "scss/partner.scss"
section1:

6
layouts/robots.txt Normal file
View File

@ -0,0 +1,6 @@
User-agent: *
{{ range .Pages }}
{{ if .Params.disallow }}
Disallow: {{ .RelPermalink }}
{{ end }}
{{ end }}