From 0c6edf1fe05e1fa3888994dfb84dcda9ee5a46fc Mon Sep 17 00:00:00 2001 From: Brian Hinton Date: Mon, 28 Jun 2021 08:23:18 -0400 Subject: [PATCH] bug: changed initialization order of the author (#563) --- examples/blog/src/pages/$author.astro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/blog/src/pages/$author.astro b/examples/blog/src/pages/$author.astro index e06d8bc94..ff80344e4 100644 --- a/examples/blog/src/pages/$author.astro +++ b/examples/blog/src/pages/$author.astro @@ -8,7 +8,6 @@ import Pagination from '../components/Pagination.astro'; let title = 'Don’s Blog'; let description = 'An example blog on Astro'; let canonicalURL = Astro.request.canonicalURL; -const author = authorData[collection.params.author]; // collection import authorData from '../data/authors.json'; @@ -42,6 +41,8 @@ export async function createCollection() { routes, }; } + +const author = authorData[collection.params.author]; ---