Capitalize categories in hierarchy
This commit is contained in:
1 parent
774c713110
commit
8066b04b36
2 files changed
+11
-9
No files matched your search
@@ -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