blob: 67c048dfa0e690ac3a3cf7031e270260619616a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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 + `" />`,
}
}
|