Capitalize categories in hierarchy

This commit is contained in:
2026-05-07 17:01:39 -07:00
parent 774c713110
commit 8066b04b36
2 changed files with 11 additions and 9 deletions
+2 -1
View File
@@ -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, '/');