bug: changed initialization order of the author (#563)
This commit is contained in:
parent
3c4e6c5913
commit
0c6edf1fe0
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,6 @@ import Pagination from '../components/Pagination.astro';
|
||||||
let title = 'Don’s Blog';
|
let title = 'Don’s 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>
|
||||||
|
|
Loading…
Reference in a new issue