From 7d3b758489e49a8d36cd3418d49807d9afb34545 Mon Sep 17 00:00:00 2001 From: Kevin Van Der Werff Date: Sat, 15 Jun 2019 22:52:53 +0200 Subject: [PATCH] move _category.vue to root of /pages --- components/Sidebar.vue | 5 +---- pages/{categories => }/_category.vue | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) rename pages/{categories => }/_category.vue (87%) diff --git a/components/Sidebar.vue b/components/Sidebar.vue index 8157e37..2c1f517 100644 --- a/components/Sidebar.vue +++ b/components/Sidebar.vue @@ -15,10 +15,7 @@ export default { } }, created() { - this.menuEntries = store.map(({ title, slug }) => ({ - slug: '/categories' + slug, - title - })) + this.menuEntries = store.map(({ title, slug }) => ({ title, slug })) } } diff --git a/pages/categories/_category.vue b/pages/_category.vue similarity index 87% rename from pages/categories/_category.vue rename to pages/_category.vue index c71ea39..135e999 100644 --- a/pages/categories/_category.vue +++ b/pages/_category.vue @@ -7,8 +7,8 @@