diff options
Diffstat (limited to 'examples/blog-multiple-authors/src/pages/index.astro')
-rw-r--r-- | examples/blog-multiple-authors/src/pages/index.astro | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/blog-multiple-authors/src/pages/index.astro b/examples/blog-multiple-authors/src/pages/index.astro index da7539394..5c18a87f0 100644 --- a/examples/blog-multiple-authors/src/pages/index.astro +++ b/examples/blog-multiple-authors/src/pages/index.astro @@ -18,6 +18,7 @@ interface MarkdownFrontmatter { // 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.request.canonicalURL; // Data Fetching: List all Markdown posts in the repo. let allPosts = Astro.fetchContent<MarkdownFrontmatter>('./post/*.md'); @@ -34,7 +35,7 @@ let firstPage = allPosts.slice(0, 2); title={title} description={description} image={allPosts[0].image} - canonicalURL={Astro.request.canonicalURL.href} + canonicalURL={canonicalURL} /> </head> |