mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
fix: seo complaining about missing lang html attribute
This commit is contained in:
parent
7151cbbf76
commit
d615b1c537
10 changed files with 27 additions and 4 deletions
|
@ -85,6 +85,9 @@ export default {
|
||||||
},
|
},
|
||||||
head () {
|
head () {
|
||||||
return {
|
return {
|
||||||
|
htmlAttrs: {
|
||||||
|
lang: this.settings.instance_locale
|
||||||
|
},
|
||||||
title: this.settings.title + ' - ' + this.$t('common.login')
|
title: this.settings.title + ' - ' + this.$t('common.login')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,6 +77,9 @@ export default {
|
||||||
},
|
},
|
||||||
head () {
|
head () {
|
||||||
return {
|
return {
|
||||||
|
htmlAttrs: {
|
||||||
|
lang: this.settings.instance_locale
|
||||||
|
},
|
||||||
title: this.settings.title + ' - ' + this.$t('common.register')
|
title: this.settings.title + ' - ' + this.$t('common.register')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,9 @@ export default {
|
||||||
},
|
},
|
||||||
head () {
|
head () {
|
||||||
return {
|
return {
|
||||||
|
htmlAttrs: {
|
||||||
|
lang: this.settings.instance_locale
|
||||||
|
},
|
||||||
title: `${this.settings.title} - ${this.$t('common.info')}`
|
title: `${this.settings.title} - ${this.$t('common.info')}`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -30,6 +30,9 @@ export default {
|
||||||
return {}
|
return {}
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
htmlAttrs: {
|
||||||
|
lang: this.settings.instance_locale
|
||||||
|
},
|
||||||
title: `${this.settings.title} - ${this.announcement.title}`
|
title: `${this.settings.title} - ${this.announcement.title}`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -23,6 +23,9 @@ export default {
|
||||||
const title = `${this.settings.title} - ${this.collection}`
|
const title = `${this.settings.title} - ${this.collection}`
|
||||||
return {
|
return {
|
||||||
title,
|
title,
|
||||||
|
htmlAttrs: {
|
||||||
|
lang: this.settings.instance_locale
|
||||||
|
},
|
||||||
link: [
|
link: [
|
||||||
{ rel: 'alternate', type: 'application/rss+xml', title, href: this.settings.baseurl + `/feed/rss/collection/${this.collection}` },
|
{ rel: 'alternate', type: 'application/rss+xml', title, href: this.settings.baseurl + `/feed/rss/collection/${this.collection}` },
|
||||||
{ rel: 'alternate', type: 'text/calendar', title, href: this.settings.baseurl + `/feed/ics/collection/${this.collection}` }
|
{ rel: 'alternate', type: 'text/calendar', title, href: this.settings.baseurl + `/feed/ics/collection/${this.collection}` }
|
||||||
|
|
|
@ -188,6 +188,9 @@ export default {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
title: `${this.settings.title} - ${this.event.title}`,
|
title: `${this.settings.title} - ${this.event.title}`,
|
||||||
|
htmlAttrs: {
|
||||||
|
lang: this.settings.instance_locale
|
||||||
|
},
|
||||||
meta: [
|
meta: [
|
||||||
// hid is used as unique identifier. Do not use `vmid` for it as it will not work
|
// hid is used as unique identifier. Do not use `vmid` for it as it will not work
|
||||||
{
|
{
|
||||||
|
|
|
@ -122,6 +122,9 @@ export default {
|
||||||
},
|
},
|
||||||
head () {
|
head () {
|
||||||
return {
|
return {
|
||||||
|
htmlAttrs: {
|
||||||
|
lang: this.settings.instance_locale
|
||||||
|
},
|
||||||
title: `${this.settings.title} - ${this.$t('common.export')}`,
|
title: `${this.settings.title} - ${this.$t('common.export')}`,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -62,12 +62,10 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
head () {
|
head () {
|
||||||
const i18nHead = this.$nuxtI18nHead({ addSeoAttributes: true })
|
|
||||||
return {
|
return {
|
||||||
title: this.settings.title,
|
title: this.settings.title,
|
||||||
htmlAttrs: {
|
htmlAttrs: {
|
||||||
lang: this.settings.instance_locale,
|
lang: this.settings.instance_locale,
|
||||||
...i18nHead.htmlAttrs
|
|
||||||
},
|
},
|
||||||
meta: [
|
meta: [
|
||||||
// hid is used as unique identifier. Do not use `vmid` for it as it will not work
|
// hid is used as unique identifier. Do not use `vmid` for it as it will not work
|
||||||
|
@ -76,14 +74,12 @@ export default {
|
||||||
{ hid: 'og-title', property: 'og:title', content: this.settings.title },
|
{ hid: 'og-title', property: 'og:title', content: this.settings.title },
|
||||||
{ hid: 'og-url', property: 'og:url', content: this.settings.baseurl },
|
{ hid: 'og-url', property: 'og:url', content: this.settings.baseurl },
|
||||||
{ property: 'og:image', content: this.settings.baseurl + '/logo.png' },
|
{ property: 'og:image', content: this.settings.baseurl + '/logo.png' },
|
||||||
...i18nHead.meta
|
|
||||||
],
|
],
|
||||||
link: [
|
link: [
|
||||||
{ rel: 'apple-touch-icon', href: this.settings.baseurl + '/logo.png' },
|
{ rel: 'apple-touch-icon', href: this.settings.baseurl + '/logo.png' },
|
||||||
{ rel: 'alternate', type: 'application/rss+xml', title: this.settings.title, href: this.settings.baseurl + '/feed/rss' },
|
{ rel: 'alternate', type: 'application/rss+xml', title: this.settings.title, href: this.settings.baseurl + '/feed/rss' },
|
||||||
{ rel: 'alternate', type: 'text/calendar', title: this.settings.title, href: this.settings.baseurl + '/feed/ics' },
|
{ rel: 'alternate', type: 'text/calendar', title: this.settings.title, href: this.settings.baseurl + '/feed/ics' },
|
||||||
{ rel: 'me', href: `${this.settings.baseurl}/federation/u/${this.settings.instance_name}`},
|
{ rel: 'me', href: `${this.settings.baseurl}/federation/u/${this.settings.instance_name}`},
|
||||||
...i18nHead.link
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -43,6 +43,9 @@ export default {
|
||||||
const title = `${this.settings.title} - ${this.place.name}`
|
const title = `${this.settings.title} - ${this.place.name}`
|
||||||
return {
|
return {
|
||||||
title,
|
title,
|
||||||
|
htmlAttrs: {
|
||||||
|
lang: this.settings.instance_locale
|
||||||
|
},
|
||||||
link: [
|
link: [
|
||||||
{ rel: 'alternate', type: 'application/rss+xml', title, href: this.settings.baseurl + `/feed/rss/place/${this.place.id}` },
|
{ rel: 'alternate', type: 'application/rss+xml', title, href: this.settings.baseurl + `/feed/rss/place/${this.place.id}` },
|
||||||
{ rel: 'alternate', type: 'text/calendar', title, href: this.settings.baseurl + `/feed/ics/place/${this.place.id}` }
|
{ rel: 'alternate', type: 'text/calendar', title, href: this.settings.baseurl + `/feed/ics/place/${this.place.id}` }
|
||||||
|
|
|
@ -24,6 +24,9 @@ export default {
|
||||||
const title = `${this.settings.title} #${tag}`
|
const title = `${this.settings.title} #${tag}`
|
||||||
return {
|
return {
|
||||||
title,
|
title,
|
||||||
|
htmlAttrs: {
|
||||||
|
lang: this.settings.instance_locale
|
||||||
|
},
|
||||||
link: [
|
link: [
|
||||||
{ rel: 'alternate', type: 'application/rss+xml', title, href: this.settings.baseurl + `/feed/rss/tag/${tag}` },
|
{ rel: 'alternate', type: 'application/rss+xml', title, href: this.settings.baseurl + `/feed/rss/tag/${tag}` },
|
||||||
{ rel: 'alternate', type: 'text/calendar', title, href: this.settings.baseurl + `/feed/ics/tag/${tag}` }
|
{ rel: 'alternate', type: 'text/calendar', title, href: this.settings.baseurl + `/feed/ics/tag/${tag}` }
|
||||||
|
|
Loading…
Reference in a new issue