marnen / middleman-breadcrumbs

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

Is it possible to have custom name for each page? #16

Open abbeibei opened 6 years ago

abbeibei commented 6 years ago

Hi there,

Currently the page name for the breadcrumb is title, but it's usually quite long for the SEO purpose and doesn't look good to be used for breadcrumb. Is it possible a add an extra field to check if a variable exists in frontmatter?

ex. #{ breadcrumbs(current_page, separator: ' > ', wrapper: :span, custom_title: 'whichever_name_user_picks') }

Cheers, Phoebe

marnen commented 6 years ago

This isn't currently possible, but pull requests are welcome!