website-v2
website-v2 copied to clipboard
[SEO] Missing meta tags for i18n
I was taking a look at some of the sites HTML and noticed that on non-english pages the meta wasn't accurate for the locale.
These are important as they help Google understand which page a user should see depending on what their language preference is and avoid duplicate content penalties. They can also be used to automatically redirect the user to the page they should be seeing (see nuxt-i18n).
It's not urgent but would be a good one to sort out. You can find more information here: https://developers.google.com/search/docs/advanced/crawling/localized-versions
Rough checklist:
- set the
<html lang="">
correctly depending on which is used, currently all pages have<html lang="en">
- add alternative meta links for the i18n pages, they look like
- use og:locale
<link rel="alternate" hreflang="en-gb"
href="https://en-gb.example.com/page.html" />
<link rel="alternate" hreflang="en-us"
href="https://en-us.example.com/page.html" />
<link rel="alternate" hreflang="en"
href="https://en.example.com/page.html" />
<link rel="alternate" hreflang="de"
href="https://de.example.com/page.html" />
<link rel="alternate" hreflang="x-default"
href="https://www.example.com/" />
- use canonical links
@harlan-zw I think you're checking i1n legacy coz the new plugin have all the features mentioned above.. https://i18n.nuxtjs.org/seo
@iamarpitpatidar The nuxtjs.org site doesn't even use that module from what I can see, this issue is specifically about the nuxtjs.org site.
Take a look at view-source:https://nuxtjs.org/fr/ and you'll see the problem in the opening HTML block
@iamarpitpatidar Apparently this is a limitation of Docus. You can open an issue here.