Capitalize categories in hierarchy
This commit is contained in:
@@ -10,8 +10,9 @@ interface Props {
|
||||
|
||||
const { prefix, hierarchy: maybeHierarchy} = Astro.props;
|
||||
|
||||
const hierarchy = maybeHierarchy ?? makeHierarchy((await getCollection('notes')).map(note => [note.id, note.data.title]));
|
||||
const notes = await getCollection('notes');
|
||||
|
||||
const hierarchy = maybeHierarchy ?? makeHierarchy(notes.map(note => [note.id, note.data.title]));
|
||||
|
||||
const pathname = Astro.url.pathname.replace(import.meta.env.BASE_URL, '/');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user