HUGO
Menu
GitHub 90497 stars Mastodon

hugo.Generator

Returns an HTML meta element identifying the software that generated the site.
Syntax
hugo.Generator
Returns
template.HTML

Usage

The hugo.Generator function returns an HTML meta element identifying the software that generated the site, including the Hugo version.

Hugo injects this element into the head element of the home page unless the page already contains a generator meta element, or you set disableHugoGeneratorInject to true in your project configuration.

Examples

{{ hugo.Generator }} → <meta name="generator" content="Hugo 0.170.0">