Adds related links code and styles.