mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
26 lines
467 B
Go
26 lines
467 B
Go
![]() |
package hugolib
|
||
|
|
||
|
const Version = "0.13-DEV"
|
||
|
|
||
|
var (
|
||
|
CommitHash string
|
||
|
BuildDate string
|
||
|
)
|
||
|
|
||
|
// Hugo contains all the information about the current Hugo environment
|
||
|
type HugoInfo struct {
|
||
|
Version string
|
||
|
Generator string
|
||
|
CommitHash string
|
||
|
BuildDate string
|
||
|
}
|
||
|
|
||
|
func NewHugoInfo() HugoInfo {
|
||
|
return HugoInfo{
|
||
|
Version: Version,
|
||
|
CommitHash: CommitHash,
|
||
|
BuildDate: BuildDate,
|
||
|
Generator: `<meta name="generator" content="Hugo ` + Version + `" />`,
|
||
|
}
|
||
|
}
|