mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
Fix custom parents in breadcrumbs
This commit is contained in:
@@ -40,7 +40,6 @@ export function getTitleFromUrl(url, collection) {
|
||||
|
||||
export function breadcrumbs(url, { withCurrent = false } = {}) {
|
||||
const parts = url.split('/').filter(Boolean);
|
||||
parts.pop(); // remove current page
|
||||
const ret = [];
|
||||
|
||||
while (parts.length) {
|
||||
|
||||
Reference in New Issue
Block a user