mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
Don't use self-closing generator tag
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user