CMS Development

Woodsy
Top Contributor

Listing Pages with page/0

Hi 

I'm trying to add some code into our main header html to stop /page/0 pages from showing in our listings.

 

I was sent this code snippet by Hubspot support but I'm getting an error with the “/page/0” part. How would I rewrite this to avoid the error?

{% if content.slug is string_containing “/page/0” %} noindex, nofollow {% endif %} 

screen.jpg

Thanks

0 Upvotes
1 Reply 1
jonchim
Guide | Diamond Partner
Guide | Diamond Partner

Listing Pages with page/0

Hey @Woodsy , it looks like the copy and paste messed up the formatting of the quotes. Can you try deleting those quotes manually and re-entering them? 






Jon Chim
VP of Design & Development
Hypha HubSpot Development


check Did my post help answer your query? Help the Community by marking it as a solution
0 Upvotes