- added meta to routes.

- deleted canonical in index template, cause this info now in routes meta.
This commit is contained in:
Eugene Serb 2022-08-11 18:14:18 +03:00
parent 5642db34ee
commit 936e4e419e
2 changed files with 50 additions and 1 deletions

View File

@ -33,7 +33,6 @@
<meta name="twitter:creator" content="@eugene_serb" /> <meta name="twitter:creator" content="@eugene_serb" />
<meta name="twitter:image" content="https://wavelovers.ru/img/og.png" /> <meta name="twitter:image" content="https://wavelovers.ru/img/og.png" />
<link rel="canonical" href="https://wavelovers.ru/" />
<link rel="shortcut icon" type="image/x-icon" href="https://wavelovers.ru/img/favicon.ico" /> <link rel="shortcut icon" type="image/x-icon" href="https://wavelovers.ru/img/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="https://wavelovers.ru/img/apple-touch-icon.png" /> <link rel="apple-touch-icon" sizes="180x180" href="https://wavelovers.ru/img/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="https://wavelovers.ru/img/favicon-32x32.png" /> <link rel="icon" type="image/png" sizes="32x32" href="https://wavelovers.ru/img/favicon-32x32.png" />

View File

@ -8,26 +8,76 @@ const routes: Array<RouteRecordRaw> = [
path: '/', path: '/',
name: 'patterns-view', name: 'patterns-view',
component: PatternsView, component: PatternsView,
meta: {
title: 'Wavelovers',
metaTags: [],
linkTags: [
{
rel: 'canonical',
href: 'https://wavelovers.ru/',
},
],
},
}, },
{ {
path: '/custom', path: '/custom',
name: 'custom-view', name: 'custom-view',
component: () => import('@/views/CustomView.vue'), component: () => import('@/views/CustomView.vue'),
meta: {
title: 'Wavelovers Custom',
metaTags: [],
linkTags: [
{
rel: 'canonical',
href: 'https://wavelovers.ru/custom',
},
],
},
}, },
{ {
path: '/manual', path: '/manual',
name: 'manual-view', name: 'manual-view',
component: () => import('@/views/ManualView.vue'), component: () => import('@/views/ManualView.vue'),
meta: {
title: 'Wavelovers Manual',
metaTags: [],
linkTags: [
{
rel: 'canonical',
href: 'https://wavelovers.ru/manual',
},
],
},
}, },
{ {
path: '/diagnostic', path: '/diagnostic',
name: 'diagnostic-view', name: 'diagnostic-view',
component: () => import('@/views/DiagnosticView.vue'), component: () => import('@/views/DiagnosticView.vue'),
meta: {
title: 'Wavelovers Diagnostic',
metaTags: [],
linkTags: [
{
rel: 'canonical',
href: 'https://wavelovers.ru/diagnostic',
},
],
},
}, },
{ {
path: '/404', path: '/404',
name: '404', name: '404',
component: () => import('@/views/NotFoundView.vue'), component: () => import('@/views/NotFoundView.vue'),
meta: {
title: 'Wavelovers Page not found',
metaTags: [],
linkTags: [
{
rel: 'canonical',
href: 'https://wavelovers.ru/404',
},
],
},
}, },
{ {
path: '/:catchAll(.*)*', path: '/:catchAll(.*)*',