summaryrefslogtreecommitdiff
path: root/examples/blog-multiple-authors/src/pages/index.astro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/blog-multiple-authors/src/pages/index.astro')
-rw-r--r--examples/blog-multiple-authors/src/pages/index.astro2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/blog-multiple-authors/src/pages/index.astro b/examples/blog-multiple-authors/src/pages/index.astro
index 91168ed43..8e47b8f15 100644
--- a/examples/blog-multiple-authors/src/pages/index.astro
+++ b/examples/blog-multiple-authors/src/pages/index.astro
@@ -12,7 +12,7 @@ import authorData from "../data/authors.json";
// All variables are available to use in the HTML template below.
let title = "Don’s Blog";
let description = "An example blog on Astro";
-let canonicalURL = Astro.canonicalURL;
+const canonicalURL = new URL(Astro.url.pathname, Astro.site);
// Data Fetching: List all Markdown posts in the repo.
let allPosts = await Astro.glob("./post/*.md");