I am using github to host a static site and Jekyll to generate it.
I have a menu bar (as ) and would like the correspo
Here is a jQuery method to do the same
var pathname = window.location.pathname; $(".menu.right a").each(function(index) { if (pathname === $(this).attr('href') ) { $(this).addClass("active"); } });