marnen / middleman-breadcrumbs

Breadcrumbs helper for Middleman (http://www.middlemanapp.com)
MIT License
11 stars 12 forks source link

Use with Bootstrap Breadcrum class #2

Closed dwhoban closed 8 years ago

dwhoban commented 9 years ago

I am looking for a way to create breadcrumbs styled with Bootstrap's breadcrumb class.

I am still finding my feet with ruby and I was wondering how I could add wrap the links in li tags so that I could include them within an ordered list? Perhaps create a separate helper?

marnen commented 8 years ago

I somehow didn't notice this issue sooner; sorry! This sounds like a common use case, and something that the plugin should be able to support if it doesn't already. Let me investigate and get back to you.

marnen commented 8 years ago

I can't think of a way to do this easily as the gem stands now, because the breadcrumbs method returns a string. But this option absolutely should exist. I'll try to write something, but due to a house move, I have limited time for non-work programming right now. If you feel like making a pull request, please do so; lib/middleman-breadcrumbs/breadcrumbs_helper.rb is probably where you should look.

marnen commented 8 years ago

Added in v0.3.0. @dwhoban Let me know if this works for you.