Add SEO modules

This commit is contained in:
2020-12-21 12:05:03 +01:00
parent 1971edf96a
commit 29a3621cf0
11 changed files with 115 additions and 11 deletions

View File

@@ -2,9 +2,13 @@ export default {
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: 'Web & Software Developer' }
{ hid: 'description', name: 'description', content: 'ArtSite is my personal website build using NuxtJs to create a single point of contact' },
{ hid: 'og:type', name: 'og:type', content: 'website' },
{ hid: 'og:url', name: 'og:url', content: 'https://arthurdanjou.fr' },
{ hid: 'og:title', name: 'og:title', content: 'Arthur Danjou | FullStack Web & Software Developer' },
{ hid: 'og:site_name', name: 'og:site_name', content: 'Arthur Danjou | FullStack Web & Software Developer' },
],
link: [
{ rel: 'icon', type: 'image/png', href: '/favicon.png' }
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
}

14
config/Redirect.ts Normal file
View File

@@ -0,0 +1,14 @@
export default [
{
from: '^/twitter',
to: 'https://twitter.com/ArthurDanj'
},
{
from: '^/github',
to: 'https://github.com/ArthurDanjou'
},
{
from: '^/source',
to: 'https://github.com/ArthurDanjou/artsite'
}
]

5
config/Robots.ts Normal file
View File

@@ -0,0 +1,5 @@
export default {
UserAgent: '*',
Sitemap: 'https://arthurdanjou.fr/sitemap.xml',
Allow: '*'
}

7
config/SiteMap.ts Normal file
View File

@@ -0,0 +1,7 @@
export default {
path: '/sitemap.xml',
hostname: 'https://arthurdanjou.fr',
cacheTime: 720000,
gzip: true,
generate: false,
}

View File

@@ -4,5 +4,8 @@ import ColorMode from './ColorMode'
import Tailwind from './Tailwind'
import Translation from './Translation'
import Content from './Content'
import Robots from './Robots'
import Redirect from './Redirect'
import SiteMap from "./SiteMap";
export { Axios, Head, ColorMode, Tailwind, Translation, Content }
export { Axios, Head, ColorMode, Tailwind, Translation, Content, Robots, Redirect, SiteMap }