Skip to content

Hugo's version is included as a meta tag on the home page #22499

@nickjj

Description

@nickjj

Is this a docs issue?

  • My issue is about the documentation content or website

Type of issue

Other

Description

By default Hugo will inject <meta name=generator content="Hugo 0.141.0"> or whatever version you use in the <head> of your home page.

I also use Hugo on my site and only recently discovered this.

It's not necessarily a problem but it's something to be aware of since it leaks implementation details of how the docs are generated. I know the docs are open source so it doesn't matter in this case.

Location

https://docs.docker.com/

Suggestion

It's up to you on whether or not you want to remove it.

In Hugo's config file you can add disableHugoGeneratorInject: true to prevent it from being injected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions