bug: changed initialization order of the author (#563)

This commit is contained in:
Brian Hinton 2021-06-28 08:23:18 -04:00 committed by GitHub
parent 3c4e6c5913
commit 0c6edf1fe0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,6 @@ import Pagination from '../components/Pagination.astro';
let title = 'Dons Blog'; let title = 'Dons Blog';
let description = 'An example blog on Astro'; let description = 'An example blog on Astro';
let canonicalURL = Astro.request.canonicalURL; let canonicalURL = Astro.request.canonicalURL;
const author = authorData[collection.params.author];
// collection // collection
import authorData from '../data/authors.json'; import authorData from '../data/authors.json';
@ -42,6 +41,8 @@ export async function createCollection() {
routes, routes,
}; };
} }
const author = authorData[collection.params.author];
--- ---
<html> <html>