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

Custom classes or ids for navigation items? #14

Open
cpolzer opened this issue Jul 14, 2014 · 3 comments
Open

Custom classes or ids for navigation items? #14

cpolzer opened this issue Jul 14, 2014 · 3 comments

Comments

@cpolzer
Copy link

cpolzer commented Jul 14, 2014

Hi!

Is it possible to setup custom classes and/or ids for the genreated list items?

I found this with simple.navigation: https://github.com/codeplant/simple-navigation/wiki/FAQ#q4

@cpolzer cpolzer changed the title Custom classes or ids for navigatoin items? Custom classes or ids for navigation items? Jul 14, 2014
@michaek
Copy link
Owner

michaek commented Jul 15, 2014

That's not currently possible, but it wouldn't be hard to add. This line https://github.com/michaek/middleman-navigation/blob/master/lib/middleman-navigation/tree.rb#L46 is where we're calling .item as in the simple-navigation example, and I'd suggest we'd allow class and id as keys of the navigation configuration in the YAML frontmatter, and that class or id would be applied to the navigation item. Does that sound like it would achieve what you're looking for?

@cpolzer
Copy link
Author

cpolzer commented Jul 15, 2014

let me try this (end next week)

@michaek
Copy link
Owner

michaek commented Jul 15, 2014

Awesome - let me know if you need any help. I can probably get to it too - I'll post an update here if I have a chance.

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

2 participants