chipzoller / hugo-clarity

A theme for Hugo based on VMware Clarity
Other
583 stars 268 forks source link

Meta "generator" inserted to every page, does not honor disableHugoGeneratorInject #166

Closed atticoder closed 3 years ago

atticoder commented 3 years ago

Presently meta tag "generator" is inserted to every page by partial head.html and cannot be turned off by Hugo site variable disableHugoGeneratorInject.

https://github.com/chipzoller/hugo-clarity/blob/b34fe0008cc612f5891f37c9f78f2696d2c79d26/layouts/partials/head.html#L13

Line 13 with "{{ hugo.Generator }} " can be removed completely from partial head.html, then Hugo will insert generator meta on homepage if site variable disableHugoGeneratorInject=true is not set. As per Hugo docs generator meta is only set on homepage, not on other pages.