comprehensive-rust icon indicating copy to clipboard operation
comprehensive-rust copied to clipboard

Add links between translations

Open mgeisler opened this issue 2 years ago • 3 comments

We need to add links between the translations. This will take two forms:

  1. A language picker for users. This is done via #411.
  2. Links for robots so that search engines can index the pages reliably.

The second part is done by adding

<link rel="alternate" hreflang="en" href="https://google.github.io/comprehensive-rust/" />
<link rel="alternate" hreflang="pt-BR" href="https://google.github.io/comprehensive-rust/pt-BR/" />

to the head element of every page. The alternatives will link each page with its translated siblings. See this documentation for details.

mgeisler avatar Feb 15 '23 09:02 mgeisler