diff options
| author | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2024-03-30 20:23:30 +0000 |
|---|---|---|
| committer | Joe Carstairs <65492573+Sycamost@users.noreply.github.com> | 2024-03-30 20:23:30 +0000 |
| commit | c4267702b75b577033f0e97258d13220debe8fe9 (patch) | |
| tree | 6cf7cc7f0b16af0ebaa9983e5f5dffe14ebf747c /src/components/BlogFeed.astro | |
| parent | 4718d76601b8b1f6b095ebe16f3372b9970d58b5 (diff) | |
Fixes canonical blog URL in blog feed
Diffstat (limited to 'src/components/BlogFeed.astro')
| -rw-r--r-- | src/components/BlogFeed.astro | 4 |
1 files 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) --- <section class="h-feed"> @@ -55,7 +55,7 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site) </p> <p> - <a class="u-url" href={canonicalUrl}>Permalink</a> + <a class="u-url" href={canonicalBlogUrl}>Permalink</a> </p> </aside> |
