mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
c23dfd99dd
See #570
27 lines
476 B
Go
27 lines
476 B
Go
package hugolib
|
|
|
|
const Version = "0.13-DEV"
|
|
|
|
var (
|
|
CommitHash string
|
|
BuildDate string
|
|
)
|
|
|
|
var hugoInfo *HugoInfo
|
|
|
|
// HugoInfo contains information about the current Hugo environment
|
|
type HugoInfo struct {
|
|
Version string
|
|
Generator string
|
|
CommitHash string
|
|
BuildDate string
|
|
}
|
|
|
|
func init() {
|
|
hugoInfo = &HugoInfo{
|
|
Version: Version,
|
|
CommitHash: CommitHash,
|
|
BuildDate: BuildDate,
|
|
Generator: `<meta name="generator" content="Hugo ` + Version + `" />`,
|
|
}
|
|
}
|