Skip to content

Commit 2222a2f

Browse files
authored
yarnpkg.com --> classic.yarnpkg.com (#1133)
* yarnpkg.com --> classic.yarnpkg.com This will update `<link rel="canonical">` (via https://github.com/yarnpkg/website/blob/5be62ee/_layouts/default.html ), so Google Search will show "classic" URL. Intent is to reduce confusion re: Yarn 1 vs Yarn 2 docs. See yarnpkg/berry#3425 * Package detail pages: add "classic" subdomain to permalink This will update `<link rel="canonical">`, so Google Search will show "classic" URL, for pages like https://classic.yarnpkg.com/en/package/Babel . Intent is to reduce confusion re: Yarn 1 vs Yarn 2 docs. See yarnpkg/berry#3425 (Also updates `<meta property="og:url"]`)
1 parent 5be62ee commit 2222a2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Yarn
33
description: > # this means to ignore newlines until "baseurl:"
44
Fast, reliable, and secure dependency management.
55
baseurl: ""
6-
url: "https://yarnpkg.com"
6+
url: "https://classic.yarnpkg.com"
77
twitter_username: yarnpkg
88
github_username: yarnpkg
99

js/src/components/Details.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const readmeErrorMessage = 'ERROR: No README data found!';
2222

2323
function setHead({ name, description }) {
2424
const head = document.querySelector('head');
25-
const permalink = `https://yarnpkg.com${packageLink(name)}`;
25+
const permalink = `https://classic.yarnpkg.com${packageLink(name)}`;
2626
head.querySelector('meta[property="og:title"]').setAttribute('content', name);
2727
document.title = `${name} | Yarn`;
2828
head

0 commit comments

Comments
 (0)