Refactored site navigation to use dynamically-generated links with an active state