gma / nesta

File Based CMS and Static Site Generator
http://nestacms.com
MIT License
902 stars 121 forks source link

Add current_item_class option #119

Closed gadomski closed 11 years ago

gadomski commented 11 years ago

This allows the user to customize the class applied to the current item in a display menu (instead of forcing "current").

gma commented 11 years ago

Can you give me a bit of background? Is this bootstrap again?

gadomski commented 11 years ago

Yup, bootstrap again, looking for .active instead of .current on the list item. Per #118 I'll look at moving this to a plugin.

gadomski commented 11 years ago

What do you think about moving the "current" text to a module-level method, which can be easily overwritten by a plugin. That way we don't add any new options to display_menu and I don't have to do stuff like gadomski/nesta-plugin-bootstrap@cd614d1b13f9c1aeafcc1a429b980c1db497ddf8.

gadomski commented 11 years ago

Duplicate of #121.