Skip to content

Commit

Permalink
feat: add canonical URLs (#1101)
Browse files Browse the repository at this point in the history
Co-authored-by: Marty <149421156+ffe9f8@users.noreply.github.com>
  • Loading branch information
StephenFluin and ffe9f8 authored Aug 15, 2024
1 parent cdc9f76 commit e9674c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/layouts/MainLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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');
---
<!DOCTYPE html>
<html lang="en">
Expand All @@ -21,6 +22,7 @@ const shownDescription = description || 'The Axelar Documentation tells you how
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="img/png" href="/images/favicon.png"/>
<link rel="canonical" href={canonicalURL}>
<title>{shownTitle}</title>
<meta content={shownTitle} property="og:title">
<meta content={shownTitle} property="twitter:title">
Expand Down

0 comments on commit e9674c9

Please sign in to comment.