Skip to content

[FEATURE] Introduce Breadcrumb #547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 21, 2023
Merged

[FEATURE] Introduce Breadcrumb #547

merged 2 commits into from
Aug 21, 2023

Conversation

linawolf
Copy link
Contributor

The breadcrumb can either be inserted as directive of that name or directly into the template by using the twig function {{ renderBreadcrumb() }}. See Bootstrap theme as example for the latter

@linawolf linawolf force-pushed the feature-breadcrumb branch from f99cda3 to 74314e6 Compare August 21, 2023 07:33
Copy link
Member

@jaapio jaapio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be quiet some logic in the renderer. It would have been nice if we could move some of this logic to the compiler. This would be more in line with the way toctree and menu are working.

If you see it from an abstract level a breadcrumb path could be some flat menu structure where every node has a single child. Given the fact toctrees have an impact on the structure of documents, I think it is wise to use this same structure in breadcrumbs.

The breadcrumb can either be inserted as directive of that name or directly into the template by using the twig function {{ renderBreadcrumb() }}. See Bootstrap theme as example for the latter
@linawolf linawolf force-pushed the feature-breadcrumb branch from 74314e6 to c424384 Compare August 21, 2023 19:15
@linawolf linawolf requested a review from jaapio August 21, 2023 19:15
@jaapio jaapio merged commit 0af0c7d into main Aug 21, 2023
@jaapio jaapio deleted the feature-breadcrumb branch August 21, 2023 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants