Skip to content

Documentation site not indexed by search enginesΒ #382

@colinodell

Description

@colinodell

TL;DR: Content from https://kubectl.docs.kubernetes.io/ cannot be found using popular search engines.

I expected to be able to find appropriate documentation pages like https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/ when searching for things like kustomization reference on Google. However, I'm unable to find results for this site when I run searches like:

I believe this is happening because of this meta tag in the HTML:

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">

It looks like this is only supposed to appear when HUGO_ENV != production:

{{ if eq (getenv "HUGO_ENV") "production" }}
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
{{ else }}
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
{{ end }}

So maybe the build environment is failing to set this env var correctly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions