From e9674c96be661f8065918399eb555692e1356a53 Mon Sep 17 00:00:00 2001 From: Stephen Fluin Date: Thu, 15 Aug 2024 09:00:47 -0500 Subject: [PATCH] feat: add canonical URLs (#1101) Co-authored-by: Marty <149421156+ffe9f8@users.noreply.github.com> --- src/layouts/MainLayout.astro | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/layouts/MainLayout.astro b/src/layouts/MainLayout.astro index fc5e10077..d10283d70 100644 --- a/src/layouts/MainLayout.astro +++ b/src/layouts/MainLayout.astro @@ -5,6 +5,7 @@ const { title, description, image, hidden } = Astro.props.frontmatter || Astro.p const shownTitle = title ? title + ` | Axelar Documentation` : 'Axelar Documentation'; const shownDescription = description || 'The Axelar Documentation tells you how to get started and be successful using Axelar. Axelar allows developers to build interchain dApps that connect to any blockchain. '; +const canonicalURL = new URL(Astro.url.pathname, 'https://docs.axelar.dev'); --- @@ -21,6 +22,7 @@ const shownDescription = description || 'The Axelar Documentation tells you how + {shownTitle}