Quantcast
Channel: My Cyber Universe
Viewing all articles
Browse latest Browse all 88

Jekyll + Bootstrap: Dynamic navigation bar with highlighting of the active element

$
0
0
I love using Jekyll and Bootstrap to create static websites. Jekyll is pretty cool, but doesn’t have really much helper utils to get common tasks done well and fast. In building a website powered by Jekyll, I want to have ability to create a dynamic navigation bar with highlighting of the active element in the bar. I also wanted the bar to support the second level elements (i.e. Bootstrap Dropdown menu). Since I don’t like hard coded HTML navigation links, I therefore worked out an alternative, configurable way. This is the solution I arrived at after a few hours of thinking and code writing.html

Viewing all articles
Browse latest Browse all 88

Trending Articles