hugo/hugolib/hugo.go

26 lines
465 B
Go
Raw Normal View History

package hugolib
const Version = "0.13-DEV"
var (
CommitHash string
BuildDate string
)
2015-01-18 20:40:34 -05:00
// HugoInfo contains information about the current Hugo environment
type HugoInfo struct {
Version string
Generator string
CommitHash string
BuildDate string
}
2015-01-18 20:40:34 -05:00
func newHugoInfo() *HugoInfo {
return &HugoInfo{
Version: Version,
CommitHash: CommitHash,
BuildDate: BuildDate,
Generator: `<meta name="generator" content="Hugo ` + Version + `" />`,
}
}