src/js/script.js
/*
  	Actually this should be handled by GHost itself, but the {{current}} handler doesn't
  	work as aspected everytime so I add this little FUnction to fix this on the client side.
  */
Actually this should be handled by GHost itself, but the {{current}} handler doesn't
work as aspected everytime so I add this little FUnction to fix this on the client side.
Actually this should be handled by GHost itself but the {{ current }} handler doesn ' t work as aspected everytime so I add this little FUnction to fix this on the client side .
function currentMenuFix() {
    $('.menu-list-item a').each(function() {
      var link = $(this);
      link.removeClass('current');
      if (link.attr('href') == window.location.href) {
        link.addClass('current');
      }
    });
  }
function currentMenuFix ( ) { $ ( '.menu-list-item a' ) . each ( function ( ) { var link = $ ( this ) ; link . removeClass ( 'current' ) ; if ( link . attr ( 'href' ) == window . location . href ) { link . addClass ( 'current' ) ; } } ) ; }
Actually this should be handled by GHost itself, but the {{current}} handler doesn't
work as aspected everytime so I add this little FUnction to fix this on the client side.
Actually this should be handled by GHost itself but the {{ current }} handler doesn ' t work as aspected everytime so I add this little FUnction to fix this on the client side .