Merge pull request #1390 from liuboaibc/update/seo-robots

Update/seo robots
This commit is contained in:
KubeSphere CI Bot 2021-04-20 18:08:12 +08:00 committed by GitHub
commit c6bcb408c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 16 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:

View File

@ -14,6 +14,8 @@
<meta name="docsearch:language" content="{{ .Site.LanguageCode }}" />
<link rel="canonical" href="https://kubesphere.io/{{ .RelPermalink }}" />
{{- partial "css.html" . -}}
<script src='{{ "js/jquery-3.5.0.min.js" | relURL }}'></script>

6
layouts/robots.txt Normal file
View File

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