How to set different link behavior of cms item in the collection list based on the cms item category?

Hi there, could anyone tell me if there is any way to change the linking behavior of cms item in the collection list based on the item’s category? I have a blog post cms collection that has a entry called “Category” (which is also a cms collection). The default behavior when clicking the blog post cover is bringing the readers to the article page. However, I wish my blog with the category of “Ads” could directly bring my readers to the advertised website (the link of which is also a entry in the blog post cms) when they click on the blog cover. I am using the collection list for showing blog posts, and I could not find a way to do this, could anyone help? the template I used is here, and only wish to achieve that functionality on the homepage: https://writeologytemplate.webflow.io/