diff --git a/examples/gallery/index.en.md b/examples/gallery/index.en.md index 37cbd643a4..2be38ce94b 100644 --- a/examples/gallery/index.en.md +++ b/examples/gallery/index.en.md @@ -2,4 +2,6 @@ title: Gallery order: -1 icon: other +redirect_from: + - /en/examples --- diff --git a/examples/gallery/index.zh.md b/examples/gallery/index.zh.md index 8d9f4398d4..7e2cf889df 100644 --- a/examples/gallery/index.zh.md +++ b/examples/gallery/index.zh.md @@ -2,4 +2,6 @@ title: 所有图表 order: -1 icon: other ---- \ No newline at end of file +redirect_from: + - /zh/examples +--- diff --git a/gatsby-config.js b/gatsby-config.js index b258db31ca..574b7befa3 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -24,7 +24,7 @@ module.exports = { }, }, { - slug: 'examples/gallery', + slug: 'examples', title: { zh: '图表演示', en: 'Examples',