Set Hugo Navigation Menus with Active Class Without pageRef

Quick how-to guide on setting active class to nav links in Hugo menus without pageRef. A simple string comparison method works with any content structure. Code examples included for my top nav and footer menus.