summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/blog/src/pages/$author.astro3
1 files changed, 2 insertions, 1 deletions
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];
---
<html>