Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
nickjj opened this issue Apr 26, 2025 · 4 comments · Fixed by #22500
Closed
1 task done

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

nickjj opened this issue Apr 26, 2025 · 4 comments · Fixed by #22500
Labels
status/triage Needs triage

Comments

@nickjj
Copy link
Contributor

nickjj commented Apr 26, 2025

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.

@nickjj nickjj added the status/triage Needs triage label Apr 26, 2025
@thaJeztah
Copy link
Member

Thanks! Yeah, doesn't look like a security issue, but also quite likely irrelevant to the reader; are you interested in opening a pull request?

@nickjj
Copy link
Contributor Author

nickjj commented Apr 26, 2025

Sure, I opened it at: #22500

@thaJeztah
Copy link
Member

Awesome!

@thaJeztah thaJeztah linked a pull request Apr 26, 2025 that will close this issue
3 tasks
@docker-robot
Copy link

docker-robot bot commented May 26, 2025

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

@docker-robot docker-robot bot locked and limited conversation to collaborators May 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/triage Needs triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants