hugo/hugolib/hugo.go

32 lines
512 B
Go
Raw Normal View History

package hugolib
import (
"html/template"
)
2015-02-21 23:11:36 -05:00
const Version = "0.14-DEV"
var (
CommitHash string
BuildDate string
)
var hugoInfo *HugoInfo
2015-01-18 20:40:34 -05:00
// HugoInfo contains information about the current Hugo environment
type HugoInfo struct {
Version string
Generator template.HTML
CommitHash string
BuildDate string
}
func init() {
hugoInfo = &HugoInfo{
Version: Version,
CommitHash: CommitHash,
BuildDate: BuildDate,
Generator: `<meta name="generator" content="Hugo ` + Version + `" />`,
}
}