From 9a7d82cb1ce153c2716246a45d3b70a51bcd8dba Mon Sep 17 00:00:00 2001 From: hamdy Date: Thu, 19 Nov 2020 16:03:42 +0200 Subject: [PATCH] News --- content/site/navigation.json | 5 +++++ gridsome.config.js | 4 ++-- src/pages/{Blog.vue => News.vue} | 0 3 files changed, 7 insertions(+), 2 deletions(-) rename src/pages/{Blog.vue => News.vue} (100%) diff --git a/content/site/navigation.json b/content/site/navigation.json index 840a438b1..d0d0b1690 100644 --- a/content/site/navigation.json +++ b/content/site/navigation.json @@ -10,6 +10,11 @@ "link": "/people", "external": false }, + { + "name": "News", + "link": "/news", + "external": false + }, { "name": "Values", diff --git a/gridsome.config.js b/gridsome.config.js index f34eb997f..a17196ce9 100644 --- a/gridsome.config.js +++ b/gridsome.config.js @@ -79,7 +79,7 @@ module.exports = { typeName: 'Blog', path: './content/blog/**/*.md', templates: { - BlogPost: '/blog/:id' + BlogPost: '/news/:id' }, refs: { author: 'Person', @@ -124,7 +124,7 @@ module.exports = { }, templates: { Blog: [{ - path: '/blog/:id' + path: '/news/:id' }], Person: [{ path: '/people/:id', diff --git a/src/pages/Blog.vue b/src/pages/News.vue similarity index 100% rename from src/pages/Blog.vue rename to src/pages/News.vue