From c4267702b75b577033f0e97258d13220debe8fe9 Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Sat, 30 Mar 2024 20:23:30 +0000 Subject: [PATCH] Fixes canonical blog URL in blog feed --- src/components/BlogFeed.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/BlogFeed.astro b/src/components/BlogFeed.astro index d785524..b6f9d55 100644 --- a/src/components/BlogFeed.astro +++ b/src/components/BlogFeed.astro @@ -39,7 +39,7 @@ function sortByPubDateDescending(post1: CollectionEntry<'blog'>, post2: Collecti const headingElem = `h${headingLevel}`; -const canonicalUrl = new URL(Astro.url.pathname, Astro.site) +const canonicalBlogUrl = new URL('blog', Astro.site) ---
@@ -55,7 +55,7 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site)

- Permalink + Permalink