Apply class to single reference links