feat: add canonical URLs
the page content is in multiple places, and the wiki should be seen as the authoritative copy. By specifying canonical URLs we let search engines, etc., know about this
This commit is contained in:
parent
67a8b57d2a
commit
3703dcb7fe
1 changed files with 6 additions and 1 deletions
|
@ -68,6 +68,11 @@ const { post, path, name } = Astro.props;
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Aux Docs - {name}</title>
|
||||
{
|
||||
post ? (
|
||||
<link rel="canonical" href={`https://wiki.auxolotl.org/${path}`} />
|
||||
) : null
|
||||
}
|
||||
</head>
|
||||
<style>
|
||||
.box {
|
||||
|
@ -94,4 +99,4 @@ const { post, path, name } = Astro.props;
|
|||
<NavPage path={path} />
|
||||
)
|
||||
}
|
||||
</body>
|
||||
</body>
|
||||
|
|
Loading…
Add table
Reference in a new issue