denoland / dotland

[Archived] deno.land website
https://deno.land
MIT License
957 stars 626 forks source link

feat: add canonical url of manual pages #2015

Closed kt3k closed 2 years ago

kt3k commented 2 years ago

This adds canonical url meta tags to the manual pages. ref. https://developers.google.com/search/docs/advanced/crawling/consolidate-duplicate-urls

The effect of this change is that the search engines will always list the latest version of the same page in the search result instead of versioned pages.

For example, if I search for the query deno config in google now, the search result shows https://deno.land/manual@v1.16.0/getting_started/configuration_file (outdated version) for the first result. This will be changed to https://deno.land/getting_started/configuration_file (latest version) by this change.

closes #2010

kt3k commented 2 years ago

I'll send this again to fresh version of the website later.