Skip to content

Commit

Permalink
fix(meta): cleanup description meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Jun 14, 2024
1 parent 3f41a6d commit 9845997
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
1 change: 0 additions & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export default {
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: `${config.appTitle}, multi, multi.coop, multi-site-app` },
{ name: 'format-detection', content: 'telephone=no' },
]
},
Expand Down
14 changes: 1 addition & 13 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ export default {
head () {
const siteTitle = this.config.data.app_name
const routeName = this.routeName
const pageKeywords = this.routeKeywords
const pageDescription = this.routeDescription ?? `${siteTitle} | ${routeName}`
const pageKeywords = this.routeKeywords
// cf : https://developers.google.com/search/docs/advanced/crawling/special-tags?hl=fr
return {
Expand All @@ -240,18 +240,6 @@ export default {
vmid: 'description',
content: pageDescription.slice(0, 119)
},
{
name: 'description',
// hid: 'og:description',
vmid: 'description',
content: pageKeywords
},
{
name: 'description',
// hid: 'og:description',
vmid: 'description',
content: this.appKeywords
},
{
name: 'keywords',
// hid: 'keywords',
Expand Down

0 comments on commit 9845997

Please sign in to comment.