Skip to content
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

Breadcrumbs #1999

Closed
chrede88 opened this issue Nov 28, 2020 · 4 comments
Closed

Breadcrumbs #1999

chrede88 opened this issue Nov 28, 2020 · 4 comments

Comments

@chrede88
Copy link
Contributor

chrede88 commented Nov 28, 2020

Feature Request

Is your feature request related to a problem? Please describe.
After talking to @rodrigoalcarazdelaosa about implementing breadcrumbs on his page, I figured others might also be interested in this feature. I'm trying to gauge the interest with this feature request.

Describe the solution you'd like
My current implementation relies on .Parent for getting titles and permalinks. The partial recursively crawl through the path back to home. The breadcrumbs will only be shown if the site parameter breadcrumb is set to true in the configuration.

I've already looked into to implementing this. So far I've managed to place breadcrumbs on "normal pages", in "books" and in "docs".
I haven't looked too much into widget pages and author pages yet.

Additional context
Check out this link (https://chrede88.github.io/Quantum-Devices-Group/post/testpost/) for my current implementation.
Links to code:
https://github.com/Chrede88/wowchemy-hugo-modules/blob/breadcrumb/wowchemy/layouts/partials/breadcrumb.html
https://github.com/Chrede88/wowchemy-hugo-modules/blob/breadcrumb/wowchemy/layouts/partials/breadcrumb_helper.html

@rodrigoalcarazdelaosa
Copy link
Contributor

I just found this example in the Hugo docs.

@chrede88
Copy link
Contributor Author

Yes, did find that myself as well. The code is written a little bit different, but produces the same result 😃

@chrede88 chrede88 mentioned this issue Dec 2, 2020
@gcushen
Copy link
Collaborator

gcushen commented Dec 28, 2020

Please constrain the scope of this initial bread-crumb proposal and associated PR to adding an option for bread-crumb navigation above the title of book pages only.

@chrede88
Copy link
Contributor Author

Done!

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

No branches or pull requests

3 participants