diff options
Diffstat (limited to 'src/components/CanonicalURL.astro')
-rw-r--r-- | src/components/CanonicalURL.astro | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/CanonicalURL.astro b/src/components/CanonicalURL.astro new file mode 100644 index 0000000..0081f71 --- /dev/null +++ b/src/components/CanonicalURL.astro @@ -0,0 +1,5 @@ +--- +const canonicalURL = new URL(Astro.url.pathname, Astro.site); +--- + +<link href={canonicalURL} rel="canonical" /> |