GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
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_trail already supported cases like these:
# trail = [/index.md, /foo.md.erb, /foo/stuff.html]
but now it will also support
# trail = [/index.md, /1.2.erb, /1.2/stuff.html]
Let #breadcrumbs_trail always find closest parent
The fancy functional programming stuff is beyond my 2006-vintage understanding of Ruby but the intent seems right. I will try and do a quick test of this tomorrow and let you know whether it works for my case.
Dropping the modified breadcrumbs.rb into my lib/ directory seems to fix my particular use case.