Refactor code structure for improved readability and maintainability
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -35,7 +35,7 @@ const collectionIndex = entries.find((item) => item.id === "index");
|
||||
const entryUrl =
|
||||
entry.id === "index" ? `/${collection}` : `/${collection}/${entry.id}`;
|
||||
const breadcrumbs = [
|
||||
{ label: "Radium Help", href: "/" },
|
||||
{ label: "Help", href: "/" },
|
||||
{
|
||||
label: collectionIndex?.data.title ?? collection,
|
||||
href: entry.id === "index" ? undefined : `/${collection}`,
|
||||
|
||||
Reference in New Issue
Block a user