Realized that dynamically generating the header via Liquid is sort of pointless, given that it shouldn't change much and will have four to eight elements when it's finished.  Also noted that the CSS seems to be messed up currently.
Removed attempts to detect whether the given link should be flagged 'active.'  It's messy with the current CSS (which I assume will change) and can be added back in later without much work.