From 549c44002f8b30580fe045dbb7d5affcf2146bda Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 6 Sep 2020 13:43:33 -0400 Subject: Fixes --- components/Navbar.vue | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/components/Navbar.vue b/components/Navbar.vue index a066aaf..31eb39a 100644 --- a/components/Navbar.vue +++ b/components/Navbar.vue @@ -10,10 +10,7 @@ - {{ $t('HomeText') }} - {{ $t('BlogText') }} - {{ $t('ProjectsText') }} - {{ $t('VideosText') }} + {{ $t(item.title) }} {{ locale.name }} @@ -32,24 +29,9 @@ - + - {{ $t('HomeText') }} - - - - - {{ $t('BlogText') }} - - - - - {{ $t('ProjectsText') }} - - - - - {{ $t('VideosText') }} + {{ $t(item.title) }} @@ -68,7 +50,13 @@ export default { name: 'Navbar', data () { return { - drawer: false + drawer: false, + items: [ + { title: 'HomeText', link: '/' }, + { title: 'BlogText', link: '/blog' }, + { title: 'ProjectsText', link: '/projects' }, + { title: 'VideosText', link: '/videos' } + ] } }, computed: { -- cgit v1.2.3