diff --git a/common/hugo/hugo.go b/common/hugo/hugo.go
index 54fbd65a3..5f51d2be2 100644
--- a/common/hugo/hugo.go
+++ b/common/hugo/hugo.go
@@ -68,7 +68,7 @@ func (i Info) Version() VersionString {
// Generator a Hugo meta generator HTML tag.
func (i Info) Generator() template.HTML {
- return template.HTML(fmt.Sprintf(``, CurrentVersion.String()))
+ return template.HTML(fmt.Sprintf(``, CurrentVersion.String()))
}
func (i Info) IsProduction() bool {
diff --git a/docs/content/en/functions/hugo.md b/docs/content/en/functions/hugo.md
index 1792f5a8d..40a003629 100644
--- a/docs/content/en/functions/hugo.md
+++ b/docs/content/en/functions/hugo.md
@@ -22,7 +22,7 @@ aliases: []
`hugo` returns an instance that contains the following functions:
hugo.Generator
-: `` tag for the version of Hugo that generated the site. `hugo.Generator` outputs a *complete* HTML tag; e.g. ``
+: `` tag for the version of Hugo that generated the site. `hugo.Generator` outputs a *complete* HTML tag; e.g. ``
hugo.Version
: the current version of the Hugo binary you are using e.g. `0.63.2`
diff --git a/transform/metainject/hugogenerator.go b/transform/metainject/hugogenerator.go
index 20f05145b..fd3a6a4ab 100644
--- a/transform/metainject/hugogenerator.go
+++ b/transform/metainject/hugogenerator.go
@@ -25,7 +25,7 @@ import (
var (
metaTagsCheck = regexp.MustCompile(`(?i)`, hugo.CurrentVersion)
+ hugoGeneratorTag = fmt.Sprintf(``, hugo.CurrentVersion)
)
// HugoGenerator injects a meta generator tag for Hugo if none present.
diff --git a/transform/metainject/hugogenerator_test.go b/transform/metainject/hugogenerator_test.go
index 1d6d7c4b9..415da61b3 100644
--- a/transform/metainject/hugogenerator_test.go
+++ b/transform/metainject/hugogenerator_test.go
@@ -39,10 +39,10 @@ func TestHugoGeneratorInject(t *testing.T) {
META