Remove urls from being created with certain tags

We have amp pages in our website. I want to remove all the podcast pages from having an amp version. I am getting error if I don’t return anything. Right now I am returning null if I get the tag as podcast, though the page is empty the URL is being created. I want to get rid of the urls from getting created. Below is the sample code that I am using right now.


{{^has tag="#podcasts"}}
{{!-- Here is the code for our amp pages–}}

{{#has tag="#podcasts"}}


I can’t think of a good way to do that unfortunately - I think you might be stuck with AMP on for everything or off for everything. (I’d suggest off, AMP is being slowly phased out both by Google and by us)

1 Like