From cfa7be0dd140dfb8ecb93183e75ab80216e36dc9 Mon Sep 17 00:00:00 2001 From: thinkinggis Date: Fri, 27 Dec 2019 15:33:00 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=A2=9E=E5=8A=A0=E6=89=80=E6=9C=89?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/gallery/basic/index.en.md | 4 +--- examples/gallery/basic/index.zh.md | 4 +--- examples/gallery/index.en.md | 7 +++++++ examples/gallery/index.zh.md | 7 +++++++ gatsby-config.js | 8 +++----- 5 files changed, 19 insertions(+), 11 deletions(-) create mode 100644 examples/gallery/index.en.md create mode 100644 examples/gallery/index.zh.md diff --git a/examples/gallery/basic/index.en.md b/examples/gallery/basic/index.en.md index c779938cb0..c847fa588d 100644 --- a/examples/gallery/basic/index.en.md +++ b/examples/gallery/basic/index.en.md @@ -1,6 +1,4 @@ --- -title: Gallery +title: Featured order: 0 -redirect_from: - - /en/examples --- diff --git a/examples/gallery/basic/index.zh.md b/examples/gallery/basic/index.zh.md index 71b6406985..09884f5206 100644 --- a/examples/gallery/basic/index.zh.md +++ b/examples/gallery/basic/index.zh.md @@ -1,6 +1,4 @@ --- -title: Gallery +title: 官方精品库 order: 0 -redirect_from: - - /zh/examples --- diff --git a/examples/gallery/index.en.md b/examples/gallery/index.en.md new file mode 100644 index 0000000000..2be38ce94b --- /dev/null +++ b/examples/gallery/index.en.md @@ -0,0 +1,7 @@ +--- +title: Gallery +order: -1 +icon: other +redirect_from: + - /en/examples +--- diff --git a/examples/gallery/index.zh.md b/examples/gallery/index.zh.md new file mode 100644 index 0000000000..7e2cf889df --- /dev/null +++ b/examples/gallery/index.zh.md @@ -0,0 +1,7 @@ +--- +title: 所有图表 +order: -1 +icon: other +redirect_from: + - /zh/examples +--- diff --git a/gatsby-config.js b/gatsby-config.js index 4ff2fb5995..f0b0cae925 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -33,10 +33,8 @@ module.exports = { title: { zh: '图表演示', en: 'Examples' - }, - redirect: 'gallery/basic' + } } - // target: '_blank', ], docs: [ { @@ -141,8 +139,8 @@ module.exports = { slug: 'gallery', icon: 'gallery', title: { - zh: 'Gallery', - en: 'Gallery' + zh: '官方精品库', + en: 'Featured' } }, {