canonical urls

This commit is contained in:
Zsolt Ero
2025-02-27 16:33:45 +01:00
parent dd047e3767
commit d76a877f1f

View File

@@ -1,6 +1,7 @@
---
const { frontmatter } = Astro.props || {}
const { title } = frontmatter || Astro.props
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
import '../styles/_style.css'
---
@@ -26,6 +27,7 @@ import '../styles/_style.css'
<link href="https://unpkg.com/maplibre-gl/dist/maplibre-gl.css" rel="stylesheet" />
<link rel="sitemap" href="/sitemap-index.xml" />
<link rel="canonical" href={canonicalURL} />
</head>
<body>