Don't use self-closing generator tag

This commit is contained in:
JB
2022-10-14 12:16:53 +02:00
committed by GitHub
parent a066e98851
commit 01ebb6e304
4 changed files with 7 additions and 7 deletions

View File

@@ -25,7 +25,7 @@ import (
var (
metaTagsCheck = regexp.MustCompile(`(?i)<meta\s+name=['|"]?generator['|"]?`)
hugoGeneratorTag = fmt.Sprintf(`<meta name="generator" content="Hugo %s" />`, hugo.CurrentVersion)
hugoGeneratorTag = fmt.Sprintf(`<meta name="generator" content="Hugo %s">`, hugo.CurrentVersion)
)
// HugoGenerator injects a meta generator tag for Hugo if none present.