I have added a no-index tag into the code of my website, however, those pages are still indexed. Is my code incorrect? Is it the correct way to list handles to exclude?
You have a syntax error. Try inserting the code below:
{% if handle == 'pages/history-quotes' or handle == 'pages/artwork-requirements' or handle == 'pages/launch-offer' or handle == 'pages/faqs' %}
{% endif %}
The handle keyword works everywhere. If you suddenly have problems, you can use page.handle like this
Although there should be no problems. To check, you can open the browser’s dev tools, and find this noindex element. This element should only be on those specified pages.
You will have to wait for some time until everything is indexed by Google.