Skip to content

Commit e932ea8

Browse files
committed
feat(bibliography): Add entries function to retrieve bibliography slugs
1 parent aa721ce commit e932ea8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

frontend/src/routes/bibliography/[slug]/+page.server.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,10 @@ export async function load({ params: { slug } }) {
2323
throw error(404, `Error loading bibliography ${slug}`);
2424
}
2525
}
26+
27+
/** @type {import('./$types').Entries} */
28+
export async function entries() {
29+
return Object.keys(zotero).map((slug) => ({
30+
slug
31+
}));
32+
}

0 commit comments

Comments
 (0)