💻 | Add SEO modules

This commit is contained in:
2021-04-16 23:33:53 +02:00
parent 4bb8fd2660
commit 98ebb6f01c
3 changed files with 109 additions and 4 deletions

View File

@@ -56,9 +56,36 @@ const storage = {
},
}
const sitemap = {
path: '/sitemap.xml',
hostname: 'https://arthurdanjou.fr',
cacheTime: 720000,
gzip: true,
generate: false,
}
const robots = {
UserAgent: '*',
Sitemap: 'https://arthurdanjou.fr/sitemap.xml',
Allow: '*'
}
const redirect = [
{ from: '/source', to: 'https://github.com/arthurdanjou/artsite' },
{ from: '/twitter', to: 'https://twitter.com/arthurdanj' },
{ from: '/github', to: 'https://github.com/arthurdanjou/' },
{ from: '/shelf', to: '/blog' },
{ from: '/posts', to: '/blog' },
{ from: '/resume', to: '/cv' }
]
export default [
['@nuxtjs/axios', axios],
['nuxt-i18n', i18n],
['@nuxt/content', content],
['@nuxtjs/universal-storage', storage]
['@nuxtjs/universal-storage', storage],
['@nuxtjs/robots', robots],
['@nuxtjs/sitemap', sitemap],
['@nuxtjs/redirect-module', redirect]
] as NuxtOptionsModule[]