How to make sure google indexes your site

I verified my ownership of site with google to make sure it starts indexing it https://support.google.com/webmasters/answer/9008080 using directions provided here. https://support.google.com/a/answer/6149686?hl=en

Here is an issue I faced. After verifying my ownership I logged into google search console to check on the performance. I saw this warning

noindex

To debug this I followed instructions here

The problem was that the default ananke theme I had used was adding a noindex which I confirmed by checking the source html.

noindex

I fixed it by changing themes (which I was planning to do anyways). You can also simply search for the file in your themes directory which has the noindex and remove it and regenerate the html by running hugo to fix it.