From 1213d9e65c282ebfee437fddb7e338095a85db8c Mon Sep 17 00:00:00 2001 From: Georgi Kirilov Date: Fri, 9 Nov 2018 21:28:39 +0200 Subject: [PATCH] Add 'Best' section in header --- src/App.vue | 3 ++- src/router/index.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index ff8643ca..56017e20 100644 --- a/src/App.vue +++ b/src/App.vue @@ -7,6 +7,7 @@ Top New + Best Show Ask Jobs @@ -62,7 +63,7 @@ a &.router-link-active color #fff font-weight 400 - &:nth-child(6) + &:nth-child(7) margin-right 0 .github color #fff diff --git a/src/router/index.js b/src/router/index.js index d6546c52..4eb84b55 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -19,6 +19,7 @@ export function createRouter () { { path: '/show/:page(\\d+)?', component: createListView('show') }, { path: '/ask/:page(\\d+)?', component: createListView('ask') }, { path: '/job/:page(\\d+)?', component: createListView('job') }, + { path: '/best/:page(\\d+)?', component: createListView('best') }, { path: '/item/:id(\\d+)', component: ItemView }, { path: '/user/:id', component: UserView }, { path: '/', redirect: '/top' }