Ananke theme: how to get rid from noindex, nofollow on the production website?

Hi all! I’m new to Hugo, but I have successfully installed it on the local machine with Ananke theme, and created a mini-webpage capoeirasamui[.]com (deployed on github + cloudlfare pages).

I still see <meta name="robots" content="noindex, nofollow"> in the source code of the page, but I tried to run HUGO_ENV=production hugo before committing and pushing all changes to GitHub.

I can see the changes are on GitHub, for example:

But not on CloudFlare pages. Am I missing something?

Thanks!

What you are missing could be that Cloudflare is caching your old files. That’s what Cloudflare does :wink: Switch it into “Developermode” (there should be a button on your sites dashboard in Cloudflare on the right side). Then test again. If it works then clear the cache and wait a bit and it will show properly for everyone.

Thanks, but I think it’s not the case.
I tried to clear (Purge everything) on CloudFlare + cleared “Build cache”. But the noindex, nofollow is still in the code.

Moreover, I tried to update the content of the page. And it changed (both on GitHub and CloudFlare). But not the noindex/nofollow meta-tag.

Anything else I should look into?

Hey, I think I found the solution.

All I needed was to go to CloudFlare Pages - Workers & Pages - (choose my website) - Settings:

Environment Variables - Add Variables:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.