The object you’re looping over is wrong. Instead of site.tags.links use site.links
site.tags.links
site.links