Skip to content

Commit 2659b09

Browse files
committed
gh-pages: add canonical tag
I think it makes sense to add this to help search engines when they encounter duplicate content in forked repositories.
1 parent 9c61125 commit 2659b09

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build/phars.html.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<link rel="stylesheet" href="../styles.css" />
88
<title>PHP_CodeSniffer PHAR - All PHAR files</title>
9+
<link rel="canonical" href="https://phars.phpcodesniffer.com/phars/" />
910
</head>
1011

1112
<body>
1213
<main class="container">
1314
<h1 class="heading">All PHAR files</h1>
14-
<a href="../index.html" class="link">See latest PHAR files</a>
15+
<a href=".." class="link">See latest PHAR files</a>
1516
<!-- {{ PHARS }} -->
1617
</main>
1718
</body>

src/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<link rel="stylesheet" href="./styles.css" />
88
<title>PHP_CodeSniffer PHAR - Latest PHAR files</title>
9+
<link rel="canonical" href="https://phars.phpcodesniffer.com/" />
910
</head>
1011

1112
<body>
@@ -45,7 +46,7 @@ <h2 class="download-box__title">PHPCBF</h2>
4546
</article>
4647
</div>
4748
<aside class="additional-info">
48-
<a href="./phars/index.html">
49+
<a href="./phars/">
4950
See all PHAR files
5051
</a>
5152

0 commit comments

Comments
 (0)