diff options
Diffstat (limited to 'src/layouts/Layout.astro')
| -rw-r--r-- | src/layouts/Layout.astro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index e1ab283..6eff088 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -19,7 +19,7 @@ const { title, description } = Astro.props; <meta name="description" content={description} /> <meta name="viewport" content="width=device-width" /> - <link rel="canonical" href={Astro.url} /> + <link rel="canonical" href={Astro.url.toString().replace(/\.html$/, '')} /> <link rel="alternate" type="application/rss+xml" href="/blog.xml" /> <link rel="sitemap" type="application/xml" href="/sitemap-index.xml" /> |
