simplify the author link code