summaryrefslogtreecommitdiffstats
path: root/hugolib/hugo.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/hugo.go')
-rw-r--r--hugolib/hugo.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/hugolib/hugo.go b/hugolib/hugo.go
index 17ca1c237..da08b93b9 100644
--- a/hugolib/hugo.go
+++ b/hugolib/hugo.go
@@ -1,11 +1,11 @@
package hugolib
import (
+ "fmt"
+ "github.com/spf13/hugo/helpers"
"html/template"
)
-const Version = "0.14-DEV"
-
var (
CommitHash string
BuildDate string
@@ -23,9 +23,9 @@ type HugoInfo struct {
func init() {
hugoInfo = &HugoInfo{
- Version: Version,
+ Version: helpers.HugoVersion(),
CommitHash: CommitHash,
BuildDate: BuildDate,
- Generator: `<meta name="generator" content="Hugo ` + Version + `" />`,
+ Generator: template.HTML(fmt.Sprintf(`<meta name="generator" content="Hugo %s" />`, helpers.HugoVersion())),
}
}