Generate active nav li using page IDs

More robust without overcomplicating anything. I don't like depending on
paths.