Add class to template link