diff --git a/examples/blog/src/pages/$author.astro b/examples/blog/src/pages/$author.astro index e06d8bc947..ff80344e47 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]; ---