Noindex complaint by google

I’m getting a noindex complaint by google.
I have set the params correctly and all pages say

<meta name=robots content="index, follow">

However, there is one page that says

<!DOCTYPE html>
<html lang="en-us">
    <link rel="canonical" href="http://localhost:1313/posts/">
    <meta name="robots" content="noindex">
    <meta charset="utf-8">
    <meta http-equiv="refresh" content="0; url=http://localhost:1313/posts/">


See Code search results · GitHub

Yes… I have the following in the hugo.toml, without that, all pages are “noindex”
But only one is still noindex. I’m not sure how this works… even locally, i removed that conditional statement and it still has the same result.

It is only one page that has “noindex” not all

The website is
That one page listed above… does not show “noindex”, because you cannot get to it … it redirects.
But locally it shows it on my own computer. “docs” is the output directory.

  paginate = 50
  text_color = ""
  author = ""
  favicon = ""
  site_logo = ""
  env = "production"
  production = true # Set to false for development or testing environments
  public = true # Set to false if the site should not be indexed
  private = false

Locally on my machine… I removed all of the variable logic for noindex.
It is just this one generated page that has noindex.
In fact, there is nothing searchable in my project directory that says “noindex”.
Because of that, i’m baffled as to why that page gets generated with noindex.
What is that page? I cannot find it on the live server. I wonder if google finds it?
I have requested a reindex with google, but that takes time.

Why is this a problem? The URL is a redirect, nothing more.

I’m not sure… It is the only file that has this “noindex” . I wonder why it is built though.
I removed any trace of noindex.
Perhaps google complaint is old or caused by my move to hugo or cloudflare. I’m not sure.
What I am sure about is the contents of that file saying noindex… or is that what redirected pages should have?

Yes. Indexing a redirect is nonsensical.

okay… then I guess everything is working. That is the only place noindex appears.

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