We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd047e3 commit d76a877Copy full SHA for d76a877
website/src/layouts/Layout.astro
@@ -1,6 +1,7 @@
1
---
2
const { frontmatter } = Astro.props || {}
3
const { title } = frontmatter || Astro.props
4
+const canonicalURL = new URL(Astro.url.pathname, Astro.site);
5
6
import '../styles/_style.css'
7
@@ -26,6 +27,7 @@ import '../styles/_style.css'
26
27
28
<link href="https://unpkg.com/maplibre-gl/dist/maplibre-gl.css" rel="stylesheet" />
29
<link rel="sitemap" href="/sitemap-index.xml" />
30
+ <link rel="canonical" href={canonicalURL} />
31
</head>
32
33
<body>
0 commit comments