Updated resource link macro to use new data structure.